More 1.7 fixes plus todolist stuff

Made todolist open gui
Added plugin system. TiC code.
Cleaned old code