Support custom user model table name.

This is just a preliminary patch; if there's a chance of getting this upstream, let me know what changes might need to be made and I will try to get this ready.