Core pr 5

Set of minor fixes and a fix to ensure that search's are not submit twice on the search page do to panels.
I appreciate the comment but the issue currently contains very little information except what is already here and I do generally not expect it to be updated very much. Going forward I think we should point to issues on drupal.org, external blog posts or the like when providing additional information.