Use config objects mongo settings to config river

Search plugin now reads global configuration to setup mongo river.
FIX: use url.hostname instead of .host for river

url.host contains port as well as hostname. This breaks things.