MAP-554: cleanup some warnings, remove junk classes, and implement 401 security exceptions.