Lots of updates.

* 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.