added upload progress and moved policy generation process to heroku