Fix stuff

Fixes a few blatant problems:

1. Tests don't run
2. `Application.run()` wasn't wrapped in a javascript tag in the application layout.

@matthelm @nickjs