move search.py to search/__init__.py

this is done so we can add functionality in a structured way, e.g.
history, and replace in other documents, etc.