Add dmGetCollections API call. Update dmQuery to allow no separator in search strings

The change to dmQuery lets you chose the separators between the terms in the searchstrings section of the call. Useful for passing a null value ( for example 0) when you just want to use dmQuery to return everything from a collection. Still paases ^ by default so should not affect any existing code.