Port threshold methods from ImageJ Common
WIP: Auto generate threshold interfaces and classes

Moved ApplyOtsuThreshold to the template directory, renamed it, and
modified it as to make it a template for all Apply(name)Threshold classes.
Added a template for generating threshold interfaces. Added the lists of
threshold types to be generated.
WIP: Auto generate threshold tests