Refactor application for new coding guidelines

- Line length, import sorting, etc
- Separate Model modules for each non-trivial data type
- Anything dealing with Request/Response should appear in a Handler or Helper
- Helpers should be about cross-cutting concerns, not model or handler-specific
- One Handler module per resource, not per URL