More extensive error reporting
Add basic query capabilities + thread list