Add support for forwarding to master

We now forward to masters whenever we are a slave.
Code is not very well tested, but works on simple test setup.

We need to add an option to enable/disable dis behaviour