Bug fixes.
Handling no or bad response the same way we handle CD stubs. Moving query code to a shared function.
Adding more to tutorial.