Code style and rest api restriction

Standardized use of some whitespace conventions:
- Reduced cases of lines longer than 120 characters.
- One space after each colon in each map literal.
- One space before open brace in most cases. Commented on the SpaceBeforeOpenBrace codenarc rule that it needs some bug fixing for certain cases before we can use it to automate this style check.