Switch from bool to boolean for TS 0.9; add Deft JS definition; add logic to generate classes with static methods in addition to singleton classes.