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.
Merge pull request #2 from mortu/master

Hopefully fix inventory switching for the last time.