Controller code for Register Organizations.

Code and unit tests for registerOrganization. Added utility methods in
controller for converting objects to and from JSON format. Added
required constants to models.py.