refactor logic into model
Merge branch 'template_import' of https://github.com/concerto/concerto into template_import

# By August
# Via August
* 'template_import' of https://github.com/concerto/concerto:
  Trying to see if not doing a test involving Rack::Test::UploadedFile will help 1.8.7 pass