Code produced while following http://blog.couchbase.com/game-servers-and-couchbase-nodejs-part-1