(defprotocol ICrossPageChannel (register-service [this service-name fn] [this service-name fn encode-json?]))