Move application.js out of <body>

Turbolinks messes with it.
Switch application layout to Slim

In preparation for Rails streaming