Allow empty subdomains and new exit REST endpoint