refactor builder : move all templates to static vars to make method easier to read (also move to twig friendly tagging)
complex input objects are declared through the 'type' attribute
Merge pull request #3 from kbsali/master

refactor templates + allow file name setting + complex object input fix