       middlewareTimeout : 5000
     librato: KONFIG.librato
 
-<<<<<<< HEAD
-  # Services (order is important here)
-  services =
-    kite_webterm:
-      pattern: 'webterm'
-    worker_auth:
-      pattern: 'auth'
-    kite_sharedhosting:
-      pattern: 'kite-sharedHosting'
-    kite_applications:
-      pattern: 'kite-application'
-    kite_databases:
-      pattern: 'kite-application'
-    webserver:
-      pattern: 'web'
-    worker_social:
-      pattern: 'social'
-    
-  incService = (serviceKey, inc) ->
-    for key, value of services
-      if serviceKey.indexOf(value.pattern) > -1
-        value.count = if value.count then value.count += inc else 1
-        break
-=======
-  # Services
+ # Services
   services = 
     webserver: 0
     worker_auth: 0

    kite_sharedhosting: 0
    kite_databases: 0
    kite_applications: 0
>>>>>>> 266a942989a69815ecc3f8d07f98bc203827ae01

  # Presences
  koding = require './bongo'
  koding.connect ->
    koding.monitorPresence
      join: (serviceKey) ->
<<<<<<< HEAD
        incService serviceKey, 1
      leave: (serviceKey) ->
        incService serviceKey, -1
=======
        if serviceKey.indexOf('webterm') > -1
          services.kite_webterm++
        else if serviceKey.indexOf('auth') > -1

          services.webserver--
        else if serviceKey.indexOf('social') > -1
          services.worker_social--

  {extend} = require 'underscore'
  express = require 'express'
