handler fn -> middleware. duh
Fixing issue with protocol naming.

Strangely, poky.kv.core.KeyValueProtocol was causing method signature mismatch
issues in all of the classes that referenced it.