ported: most search related files
Merge pull request #338 from EUDAT-B2SHARE/next/search

ported: most search related files