Massive codebase cleanup

Removed most of the dead code left over by plugin conversion, added some
more XML documentation, moved map and image menu items into their
respective plugins, various other misc. cleanup