Initial merge of hex fork, compile errors fixed.

Merge remote-tracking branch 'refs/remotes/hex-repo/master'

Conflicts:
	src/libtiled/libtiled.pro
	src/libtiled/mapreader.cpp
	src/tiled/mapdocument.cpp
	src/tiled/newmapdialog.cpp
	src/tiled/newmapdialog.ui
	src/tiled/stampbrush.cpp