Make password match checking a bit more robust.
Tweaks to invitation db structure.

- Remove banned column.
- Index some additional columns.
Improve invitations:

- Make /entry/registerinvitation always work.
- Fix expiration checking.
- Allow invitations to be deleted after being accepted.
- Sort invitations by reverse date inserted.
- Make some of the /profile/* invitation endpoints do a POST instead of get.