#488 fixed bug in apiv2 search that prevented displaying distance to siilarity target when using file as target
#488 added backport of ordered dict for python <=2.6