Added stuff to applyTemplate
Merge branch 'master' of github.com:ucam-cl-dtg/urop-2013-frontend