convert logins to users

starting to enable customers -> users model, changed some
primary/foreign keys, other miscellaneous fixes