Don't save division if Cancel is pressed. Fixes #175
Don't 404 when loading JS on subdirectory pages (e.g. /account)
Match PHP behaviour when we don't find an MP
Add new rebel fixture
Setup db connection before rendering header. Fixes #171
Display division motion in textarea without erroneous indentation

We do this by convert newlines into HTML entity newlines so that it
displays in a textarea correctly.

Fixes #172
Redirect to the division page if there's no redirect set

This seems to happen when you're not logged in, you click edit, you
log in and then edit the motion.
Match the (pretty shitty) PHP behaviour when saving

Also covers the scenario without redirects via the `rr` parameter
Remove any indentation so wikiparser doesn't format w/monospaced font
Only remove leading spaces

This was incorrectly removing newlines too which was resulting in
incorrect formatting
Revert "Only remove leading spaces"

This reverts commit f5058aad0c75a804ec399b2b784599dab7d4336e.
Nicely handle adding policies with missing title/description like PHP

Fixes #173
Only remove leading spaces from motion text

This was incorrectly removing newlines too which was resulting in
incorrect formatting.

This is a redo of a stuffed up commit f5058aad0c75a804ec399b2b784599dab7d4336e
that was reverted in 4352e5df833924341c5675e7032ceaf2910adb6a because
it included other unrelated stuff in it.
Install devise
rails generate devise:install
rails generate devise User
Use legacy table name
Don't try to create existing email field
Don't try to add index to TEXT column
Run devise migration