Moved almost everything into the LeapMotion class.