Hello,
for the implementation of the boundary condition involving the first derivatives, you can use a simple Neumann BC, see here in the online documentation of FEniCS 1.
As for the third order derivatives, can you please clarify whether your PDE is
$
\frac{\partial h}{\partial t} + \frac{\partial }{\partial x}\left( h^{3} \frac{\partial^{3}h}{\partial x^{3}} + \frac{1}{h} \frac{\partial h}{\partial x}\right) = 0 .
$
If so, take the derivative, apply the boundary conditions to the resulting PDE, and that will show that you have to take into account that at the boundaries, the time derivative is a certain function of higher derivatives, which gives you another PDE with fourth order derivatives. This can then be coded up as a system of two second order PDEs.
Hope that helps!