clean out backend initialization code

backend init code is a mess, it should go in it's own file to stop eyebleed looking at server.js.
at least now, we setup a hash with all the info and then use magic functions to set it up.
the rediss code is ugly too, and we should find a way to have it follow the same pattern.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>