Initial flask spike

This follows the entire flow stated in the document https://github.com/mastercoin-MSC/omniwallet/blob/master/design/login.md

The only thing that is missing is signing and unsigning the challenge in update. But that can be added later, without changing the interface too drastically.