add option to choose between ssh and http protocol

There is a option in the preferences to choose if the CopyAction class copies a link with a HTTP protocol or SSH protocol. If you are adding a new repository you must define a SSH port (the given default is 29418).