fix(file rewrite): fix file re-write capability.

- Fix formatting for html template files to be all tabs for whitespace (some spaces had crept in) which stuffs up the formatting of file rewriting.

- Added an args option to the rewrite() function to specify extra indents.

[Nice-to-have: add logic to format the comma onto the previous line.]

fix #55