implement DB and login

refactor login module, currently github and qq supported and tested

implement oss backend based on mysql database. Not well tested.