Implements first version of issue #258. Fixing related stuff.
Cleaning up code for auto-armor thingamajig.
Fixing issue #263.
Fixing issue #264. Adding final touches to issue #258.