Update to match PHPloy master branch. Add remote revision syncing

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>