Address issues related to refactoring the_game

Fix time of day persistence
Fix wield item being updated every frame causing small performance hit
Rename some classes and variables
Merge remote-tracking branch 'minetest/master'
Directx9 support