template_engine: remove unused class
template_helper: move reusable template functions
invoice/ui: refactor generate method
commands: add WriteTemplate

WriteTemplate is simply a helper to write out the output of
whatever ERB gives when processing the invoices
invoice/ui: refactor using write template command