Fix a bug in queries.uri() and add test coverage
Whitespace cleanup
Initial TornadoSession tests

Still have coverage to add