Migrations fixed for 1.5 custom user model

The migrations relied on auth.user. 
Added a couple of lines to knowledge.utils to lookup the custom user model.
Ported/patched the migrations to use the new lookup variable so that they handle being run when there is only a custom user model.