Correct some bugs that snuck in when adding 4 gamepad support. Misc refactoring. Only send uevens if there is a state change. Change formatting of verbosity output. Lots of bits and bobs.