Update scripts.h
Update database.cpp
Update database.cpp
Update manager.cpp
Update scripts.h
Merge branch 'master' of https://github.com/kpmac92/tocc into kpmac92-issue61
Some bugs of kpmac92's work fixed, and unit tests added.