A very big backport of changes made via focusstreak. (sorry)

* Delete account
* Edit account
* Reset password
* Small cosmetic fixes
* ...and more