add core module and set login manager
cleanup useless comment
add handler for 401 in api
import login manager and initialize it with application
add users module
add users service
add api for logging in, logging out and getting current user email