Refactored php libs, UI Register/Error

Moved the php files around for better directory structure
Register UI Ajaxs to web service
Register has error handling for existing email address
Took out debug statements