Refactored engine code into managers

Refactored input, system, and display engine code into corresponding
managers. Also have window procedure function stubbed.