Merge pull request #54 from toxeus/cppFixapi

cppcheck: fix multiple warnings
cppcheck: fix useInitializationList
OT_ME: correct use of OT_USE_SCRIPT_CHAI

SetupScriptObject() and the methods it calls were compiled
but not used if OT_USE_SCRIPT_CHAI was not defined.