Online Status is now stored in database

A new boolean field is add - "online" in the user schema to
indicate the user status.

The visits of a user are also logged in an array "visits" which
has fields "in" and "out" which are the timestamps.

When a user is registered, the _id is returned as response now
instead of redirecting to /. The redirection is taken care in
the front-end now.