clean out backend initialization code

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
server.js cleanup: search_wrap if we have a search key in the mongo config object

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
Merge pull request #183 from inaes-tic/xaiki/fix-ugly-server.js

nice clean out!