Add `onSuccess` and `onFailure` callbacks to forms.

So that they navigate back to the index view after adding/editing.

Also:
* split editor views into an editor and form view
* add a flash messages module (that doesn't output yet)