fixed php web service and routing issues when redirecting
Finish RESTful for resource, pending minor details