rez.rex: further improve rez.rex and fix a number of bugs after the refactor.
- ActionManager now considers a parent environment
- rez-release is working again
- Python interpreter is working again
- remaining references to "Command" replaced with "Action"