Changed subdomain resolution. Added specs for controller extensions.