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.