This fixes two issues:
1) InitialiseWorld created the Chunk Storage before resolving the World Generator. If the World Generator could not be resolved, the chunk storage was never properly disposed, leading to threads still running in the background and the server never shutting down.
2) Some initialisation stages return to the main menu (via changing state to the main menu state). Since the headless server does not have a main menu, this should actually shut the server down. Implemented this using a StateChangeListener that forces the server to shut down whenever it changes to the main menu state in headless mode.
Properly close terasology and free the mouse for the crash reporter when a crash occurs.
New run config for IntelliJ that runs with the CrashReporter (CR) enabled when needed for testing
Merge pull request #1245 from flo/better-crash-handling

Properly close terasology and free the mouse for the crash reporter when a crash occurs.
Fixed restoreSpeed debug command to restore correct speed values and to restore fall damage.
Update Artifactory URLS to terasology.org
Merge pull request #1248 from msteiger/artifactory_urls

Update Artifactory URLs to terasology.org
Added missing file.
Add a run config for IntelliJ that launches another instance of the game into its own terasology-2ndclient data dir, good for multiplayer testing
Unnecessary import statements removed
Merge pull request #1251 from synopia/develop

Unnecessary import statements removed
Do not skipp null field values when serializing components. Otherwise, server-side changes to fields that set them to null values (i.e. EntityRef.NULL) will NOT be synced to clients.
Added a command line option "-loadlastgame" that'll simply load the latest game on startup.
Merge #1236 by @shartte - headless fixes
Display the current chunk in the debug overlay.
Fixed unit test display creation on my linux pc.
Merge #1259 from @flo - unit test fix
Merge #1257 by @shartte - menu bypass option
Add a run config for the option to start straight in the last saved world, bypassing the main menu
Merge #1256 by @shartte - null field fix