Update to version 4i

This updates all the files to 4i (as always more eyes to look over the changes would be good), fixes the most recently reported bugs, re-enables digging/razing again, and updates the settings GUI.