Changes to be able to use Child/Parent mapping with MongoDB river

Together with adding script parameter to MongoDB river and adding score_mode parameter to has parent/child queries, I've also changed the serialization of order parameter in TermsAgg to be compliant with ES 1.2.x (by keeping the same values).