A tiny bit of inventory cleanup.
More inventory.js cleanup.
Fix #101.
Cleanup inventory.js code a bit more, pull out some functionality into InventoryModel.
A tiny bit more cleanup.
Merge pull request #112 from crazy2be/issue101

Fix #101