[WIP] Custom user model fixes

Wagtail still contains bugs with custom user models. The most major bug is that you cannot create or edit users when there is no username field. This PR aims to correct some of these bugs