Added subdomain support to app