Query changes

No longer support querying all messages
No longer support querying command against channel (no commands have
channel fields)
Add application/json header
Make supplying json errors easy