Major refactoring to move out classes; cleanup and re-arrange functions.

I'm starting to organize all these seemingly random classes. 'engine' is just going to provide access to useful classes for the app/game code.