Spelling correction in xapian bridge

Xapian bridge now performs spelling correction
on a users query and returns the correctedQuery
(which could be an empty string) as part of the
JSON response to client.

[endlessm/eos-sdk#1982]
Feels like this is best written as a `for` loop since we have to initialize `iter`.