Generate uploader before restarting server

If you generate the uploader after you start the server you get an error because the constant cannot be found. 

This fixes that issue
Merge pull request #96 from schneems/schneems/uploader-restart

Generate uploader before restarting server