Added first version of RESTful  API
Simplified ProfileController
Minor bugfixes