Fix import/export and copy of applications
These were not workign becuase of the decision changes in [2f339b062d3d8863c88da5c4547eb73d1a5640bb]
Fix application compare now that decisions are stored as templates [2f339b062d3d8863c88da5c4547eb73d1a5640bb]
Make the text field in the Template entity nullable so new templates can be created with an empty text field.