Finish sign in
remove useless code
fix tests
Merge pull request #1 from libitte/sign-in-out

Finish sign in