close sort file correctly
renamed restapi.py -> search.py
changed rest interface to be more rest-ful
handle api failures gracefully
reverse query results