basic implementaiton of protocolRegister.

Sadly, no isProtocolHandlerRegistered or unregisterProtocolHandler!