Refactor Generator to pass/return code buffer args
Refactor Generator to pass/return code buffer args

Refactor _process_state_machine() method in Generator class to
pass and return code buffer arguments in order to prepare both
for generating headers/footers and for generating properly indented
nested states.

ReconCell/smacha,ReconCell/smacha