Subdomain Magic and Sign In page updates

Added subdomain logic to filter out subdomain name from url. Subdomain
has to be added nginx configuration. And it must be added to Route53 on
the amazon side to forward