Some clean ups and comments.
Adding undo support for item removal and addition to loadouts. Yet another part of issue #182.