Patched the migrations and wagtailusers app to add better support for custom AUTH_USER_MODEL