Save previous search results

Fixes #58 
Branches off #240