Adding better subdomain support to rails