Expand search options when the search box is focused.

Fixes bug 2730.
Don't remember search fields if accessing from an arbitrary URL.

Fixes bug 2731.
Don't use img tags for sorttable icons.

Avoids strange artifacts in WebKit browsers:
http://stackoverflow.com/questions/5743083/strange-border-on-img-tag

Fixes bug 2268.