Add Multi Backend support

This is based on previous work by Sascha and with help from
Balasz and Thomas.
Note to self: check that all settings below this line are fine living in the group.