code cleanup
add signin and signout
complete sign in out
Merge branch 'tutorial'