Initial work on file upload GUI.

Loads of JS stuff. Server side implementation is still missing.
Use new feature to secure LaTeX compile.
Move ng-app to base template.

Need to figure out why it does not work otherwise for the questionnaire
designer.