Multiple cluster and environment support

https://thinkneardev.atlassian.net/browse/REX-1411