Add Debian security and clean up core a little.
Fix documentation and MIRROR2 checking.