restructure project and adapt for chrome extension

* convert folder structure into large flask project standard
* add login, callback html page and login check api endpoints for chrome extensions