MAIN: Don't run deinit() in the exit handler

The exit handler is run by the thread that initiated the exit(),
which is not necessarily the main thread. Our deinitialization
needs to run in the main thread, though...
MAIN: Enable the debug manager before the other subsystems
BUILD: Restructure the Makefile.am a bit

Adding new files should be less annoying now, and diffs
should read clearer (and hopefully merge better), since we
now don't have to add a \ to the end of the previous line.
COMMON: Add functions to generate unique number IDs
BUILD: Extend boost.m4 to check for Boost.Atomic
BUILD: Add dependency on Boost.Atomic
COMMON: Make generateIDNumber() thread-safe
COMMON: Split generateIDNumber() and generateIDNumberString()
COMMON: Add StackException::isEmpty()
COMMON: Add copy-constructor for std::exception to StackException
EVENTS: Handle exceptions thrown in functions forced into the main thread
EVENTS: Fix a case of reading uninitialized data
EVENTS: Register one custom event with SDL (ITC)
DOCS: Update copyright year to 2014
BUILD: Extend boost.m4 to recognize gcc 4.9
GRAPHICS: Add missing includes
BUILD: Add missing LIBICONV
BUILD: Use LTLIBICONV instead of LIBICONV

We use libtool, after all.
MAIN: Change the WinMain() stuff for SDL2

SDL1.2 had you call SDL_SetModuleHandle(), which SDL2 doesn't.
SDL2 does need SDL_MAIN_HANDLED, though, since we define our
own WinMain().
BUILD: Put libs into xoreos_LDADD instead of AM_LDFLAGS

This should preserve the correct linking order for statically
linking, i.e. put the all external libraries after our internal
convenience libraries.