Improve logger behaviour

Old `set_logger` used to override Rake's `env`, even if requested path
didn't match thrift endpoint.

Also improved error reporting to include actual error text and stack
trace.
Refactor unit tests

Moved some boilerplate into RSpec `let`, grouped some tests in context.