Fixes error parsing.
Accessing properties on response when undefined caused uncaught error.
Save deferral in dialog object.
Reject deferral when dialog is closed.
adds version # to sdk
Cookie/User Token methods should return promises.
login/signup prompts should resolve if token found