Couple indexes for users table + temp users stuff.
Couple of bugs were fixed in the createTempUser controller.
Merge branch 'dev'