Add message arguement to /query

Closes #757