update to latest yang-js/yang-express and adapt schema/server to conform to latest interface changes
diff --git a/src/server.coffee b/src/server.coffee
new file mode 100644
index 0000000..46a1e1b
--- /dev/null
+++ b/src/server.coffee
@@ -0,0 +1,31 @@
+#
+# Author: Peter K. Lee (peter@corenova.com)
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+Yang = require('yang-js')
+
+app = require('yang-express') ->
+  @enable 'yangapi'
+  @enable 'openapi', require('../package.json')
+  @enable 'restjson'
+  @enable 'websocket'
+  
+  data = require('../sample-data.json')
+  cord = @link Yang.require('cord-core'), data
+  xos  = @link Yang.require('xos-core'), data
+  
+  cord.on 'update', (prop) ->
+    console.log "[#{prop.path}] got updated, should consider persisting the change somewhere"
+
+module.exports = app
+
+# only start if directly invoked
+if require.main is module
+  argv = require('minimist')(process.argv.slice(2))
+  argv.port ?= 5050
+  app.listen argv.port