search: cgi update template

Fixed the rss/atom links
search: remove unused library

codec is not used so far.
index.php: decode string
index.php: don't sanitize, please

It delete chars we may need.
index.php: more transformation rules
index.php: for debug purposes
modify slug, it kills nginx
search/index.py: use local whoosh
search:index.py: crazy charset encoding

for the server
fix gallery