Implementing item pruning and UI tweaks

Item pruning is in this commit, and since I was working on items I
implemented the new UI for inventory. Looks great - there's still some
tweaking to do but this is pretty significant progress.

Need to add the no-prune toggle to the map editor. Will do that
separately.