Separate query and configuration logic from Session.
Merge pull request #1 from ataber/query_refactor

Separate query and configuration logic from Session.