Refactor BeanCodeGen

Only create one instance during generation
Refactor BeanCodeGen for use in tools
Fix indentation
Release v0.7