Separate application-wide assets into new files

- Fixes #207.
- Move custom scripts/styles from `application.*` files to new `base.*` files.
- Always use CoffeeScript and SCSS files in `app/assets` where possible.
- Convert old JavaScript code to CoffeeScript (still needs to be refactored for clarity, but it should work).