case 4059 - Use the ajax commands hook, also fixed the bug with dissapearing user block when bookmarking.
case 4059 - Use drupal_alter instead of module_invoke.
Merge branch 'case-4059' into new-search