   expressify: require './expressify'
 
   xhrHandshake: (callback) -> callback()
+
+  registerKite: ->
+    host = require('os').hostname()
+
+    { name, username, environment, region, version, kontrol, kiteKey } = @kite
+
+    @kiteServer = new BongoKiteServer {
+      name
+      username
+      environment
+      region
+      version
+    }
+
+    .on 'method', ({ payload, callback }) =>
+      token = @kiteServer.getToken()
+      @kite.fetchClient token.claims.sub, (err, client) =>
+        return @emit 'error', err  if err?
+        @invokeMethod(
+          payload.method
+          [payload.arguments..., callback]
+          client.context
+          "n/a"
+          "kite.js"
+          client
+        )
+
+    @kiteServer.listen 5632
+
+    @kiteServer.register
+      to      : kontrol
+      host    : host
+      kiteKey : kiteKey

        fn.autoCull = yes
        @remoteStore.add storeKey, fn
      @remoteStore.get storeKey
    @invokeMethod method, unscrubbed, secretName, sessionToken, userArea

  pong:(callback)-> callback? Date.now()


      else
        kallback = @localStore.get method
        if kallback?
          apply this, null, kallback, args, sessionToken, userArea, client
        else
          @handleError 'Unknown method type!'

