Removed duplicate constants from App class.
Refactored and cleaned up the code
Fixed style & refactored a few nasty statements.
Refactored out body parser, added tests.
Refactor and style fixes.