Query chunking,  and Logout, Store/Submit

Expands the simple query method to handle larger queries.  Returns as a generator.
Added logout method (with local/global option)
Added store and submit subcommands to the executable