Creating powerful PHP REST application