Refactoring, Cleaning

Removed false starts, legacy mouse controls, and needlessly complicated
structures. Moved code to more sensible files. General house cleaning.