proper callbacks and using batch for Collection
run proper test and test save
clear cookie on logout
whoami should use deferred
add a digest method to the api