Added core services and moved the login factory into it.