complete webapp.py using flask; add exception.DuplicateRedeemCode
Merge branch 'webfunc' into develop