Fixed bug that caused a NameError due by typo.
Changed interface for uploading files.

Changed
=======

* Added optional paramaters when posting to run/upload. The old
  interface was run/upload/<uuid>/<filename>. Now its just a form
  at run/upload. Specify a uuid if you want to upload into an
  existing simulation, otherwise just upload the file to the uploads
  folder. If no filename is given, use the local filename.
Changed to use new run/upload interface.