Made console a singleton

Removed some unneeded files.
Corrected cases of filenames - Linux/OSX might not like this.
Window focus taken into account when grabbing mouse
Fixed window/mouse issues
Fixes to run on *nix