[fixes #53] Adding canonical domains per environment; adding code to redirect to said domains if necessary.