Using RestXQ in all api queries

@wcandillon I changed my mind on this. I had to make extra improvements that will need to be released first.