API for MathPattern conversion

* The API allows for MathPattern to XQuery conversions.

Change-Id: I252fe951faef5bb498802f024a028899f2e0999b