Added support for domains override in environments. Closes #58