1. add permission control. 2. add actual template download. 3. send email after upload done.
Merge branch 'master' of github.com:felixzhao/HPSO