DATAMONGO-701 - Improve performance of starts-with and ends-with queries.

This changes the starts-with regex to the prefixed form using ^ to better make use of any index on the queried field. Also changes ending-with queries to use the $ anchor.