Hopefully fix inventory switching for the last time.

* Add support for adventure mode.
* Don't complete mode switch if new inventory fails to load.
* Code cleanup.
* Add example usage for /rc.
* Allow inventory files of any size.