Elastica fixes

I have forked PR #110 to add a few tests and an additional custom parameter that lets users access any information about the search metadata returned when running a query.