Using RestXQ in all api queries. Added utility parameter pre-processing functions