Another stab at correct SDL audio handling

Fully de-initialize SDL audio in AudioManager::deinit().
Merge remote-tracking branch 'upstream/master'
Disable input device polling code to resolve freeze after ~45 minutes.
See issue #87.
Fix ES freezing without input

And also hook up SDL joystick reinit when device removal or insertion is
detected.
Fix font rendering for fonts with horizontal bearing
Slightly better color array function

Converting only once should be faster.
Revert "Disable input device polling code to resolve freeze after ~45 minutes."

This reverts commit 4a1206aee28705232308024ce4c03f39b96478fa.
Merge commit '171ca9a' from HorstBaerbel fork
Print all Log messages to cout with --debug set.
Added startPolling and stopPolling to InputManager.
Temporarily disable polling while configuring inputs.
Polling is disabled once the first device is chosen, and resumed once the
last device is configured.
Merge branch 'master' into unstable