Renamed registrationcontroller to RegistrationController
Added methods to JSONController
Added tests to JSONController