Refactored Main, added a SystemManager

It took RealTime Cameras By H-H to get me to do it. I should really look
into why tutorials do things a bit closer.