Added generic controller system.

See res/config.ini
Till now it only supports basic keyboard keys,
mouse buttons and mouse cursor movement.