Major changes to client, server, terrain, appstates, GUI, and small bugfixes.