added logging in server.
created separate server module.
refactored to user server module.
used named function instead of anonymous one.
parsed out relative path from the url.
added skeleton router module.