php based service

Initial check in of php based REST service and sql to set up the
database scheme