Fixes # 5437 - Env controller cleanup

Removing unused controller methods from the environments controller.
Also wiping out unused tests.