Fixes for the relations autocompleter.

Added a feature to pass a function name to listen the "change" event.
Got to simulate it.
Relations not being saved properly due unregistered link.
Extended {clip_form->getprefix rel=true} for relation prefixes.
Added core_goto processing for redirection mapped inside an operation event listener.
Extended support for pubtype urltitle processing as tid parameter.