use HTML5 autofocus attribute and the helper should_autofocus_on_search_...

use HTML5 autofocus attribute and the helper should_autofocus_on_search_box? to determine if a search box should be autofocused or not.

fixes #584.

I've included support for modernizr, if it is is provided, but do not force it on downstream consumers.