add basic auth
modify user model
add auth endpoint
Merge branch 'auth' into dev