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 
I haven't done this, but I've made it so that if there's only one install, or if we detect a portable install, we use it by default.