Small change to login/out

+ Fix for synapseLogout
+ Modified doc for synapseLogin
+ Fix for a few more cases in login

SYNR-598, SYNR-599, SYNR-608