only perform cookie actions when window is present
only call nextTick if there's a cb
Update tests for new login, login with fb token.
Adds logout test.
ensure opp with slug doesn't exist before create