Separate application-wide assets into new files

- 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).
- Fix #207.