Move config system to config.py, where I keep looking for it.
Remove some unused imports.
Make the search box autofocus

Fixes bug 858015.
Merge pull request #120 from ehsan/autofocus

Make the search box autofocus