Bug863749 - Create API for checking if a subdomain is free

https://bugzilla.mozilla.org/show_bug.cgi?id=863749