remote: Fix handling newlines. Add version and 'main' connection specification. Tested open_file signal in manager