Generate app secret key
Add auth method to server
Move import of flask