Extended form and url helpers to allow redirects to given subdomain

I extended the form and url helpers to allow redirecting.