abstract api generator output dir

output dir to method for easier test stubbing
add api generator spec
api gen representer inheritance spec
Merge pull request #88 from ckampfe/api_gen_spec

Api gen spec