Restructure app

- Split up server-specific and client-specific code
- Convert common code (models) to more package-like format (in
Coffeescript, that means adding '@' before the variables you want to
export)