remotegcli-839862: Connect to BuiltinCommands.jsm better

* Read defaultPort from preferences properly
* Move connect function into BuiltinCommands.jsm

Signed-off-by: Joe Walker <jwalker@mozilla.com>