Overhauled the input event system.

Now input sends events every update cycle for immediate feedback. Also,
the windmanager isn't listening directly to the inputmanager, the gamemode
is in the middle decideing what to do with each click. Abstraction!