[BISERVER-11597]: MQL queries should enclose domainid in CDATA block

@diogofscmariano, review and notice the commit has a unit test and everything.

An example for your next commits.... :-P