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.
Added missing file.
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
Whoops, didn't have the "take screenshot" key in the readme
Add plugin support for the facet system. Add configuration for facet providers that end up in the world config UI.
Fix serialization of world gen configuration.
Restore the world generator configuration upon world reload. Fix configuration components overwriting each other when serialized.
Fix bug where modules with dependencies caused errors on the world config screen.
fix to make Terasology compile using java8
Use a more recent version of FindBugs that is compatible with Java 8.
Add Caves, CustomOreGen, and OreGeneration to the module lineup
Merge PR #1263 by @synopia - Java 8 fix