Support "joy_*_(button|hat)_*" events, and in doing so eliminate loop from config file

Conflicts:
	util
Use lfs.rmkdir() when creating user config directory
Improve logging; add --log-file flag
Add logging for command execution
Fix error message when no media libraries could be opened
Make no media libraries the default; create a separate testing config.
Log the name of the logfile when we open it
Update util library
Change the default log filename from %F to %Y-%m-%d; the latter segfaults on windows

You think I'm joking, don't you.

I invite you to open lua4windows and type "os.date('%F')" in.
Use love2d 0.9.x gamepad API rather than joystick API.