Pointer locking and mouse movement now work correctly on both html and windows platforms.

Created a PeripheralInterface class that manages all forms of input separately from the game and main files.