Introduce a seperate routine to output errors.
Introduce mrquery tool for running raw Moira queries.
Add --client-name parameter to change the client ID string.

This is useful in cases when other command-line scripts use mrtools.