[16.11.24] Added ability to create custom themes

The custom view templates previously used are not compatible with themes. The entire way forms are generated has been changed and themes apply across all forms, not just sales invoices. So there will never be a copy and paste from old templates.