Adding unit test for controller components.
Adding JSON parsing of result from otp call.
Changing AGControllerBaseURL to controller-aerogear.rhcloud.com.

- also removed commented out code
Updates after feedback on PR.