added an auth server to support register/login and to notify components of the current user.

resolved #14
resolved #15
resolved #16
resolved #17
resolved #18
resolved #21
resolved #22