add high-level login call to client

r? @dannycoates 

/cc @vladikoff