remove mail implement
Revert "remove mail implement"

This reverts commit 32689ded4e38376e3f435d80e504c77c5fef1c0f.
refactor app.py
add create_token
models.account use utils.token.create_token
refactor views.account
fix csrf protection
bug fix