Add MapReduce methods into the new collection api

JAVA-1215
Normalise getCommand method in Operations