Fix bugs in structure searching.
Similarity searches weren't deleting the temporary query structure. Now they do.
Substructure searches were buggy due to output from babel. All output now directs to /dev/null