First draft of php compatibility (probably not working)
Deleted giant comment blocks so I can see what's going on.
Fixed syntax errors.
Fixed indentation
Finished up REST port, except for some district displays still not working.
All maps should be working now.
Commented out debugging print statements.