Low frequency gyrokinetics in general plasma equilibrium in a hamiltonian formulation