refs #1877 added hooks to add search engines and social networks; some code improvements