Simple PHP REST api interface, helper and client