Multi-instance support

Only works in the GUI for now, doesn't break  the command-line client but the new options are not implemented.

Related to #29 
No I don't think so, we still need to implement refreshing the registry to be able to do that.