Refactor query consistency handling to support per-query consistency.
Merge branch 'log-api' of github.com:kuujo/copycat into log-api
Use expected exceptions in protocol request/response tests.