
var paths    = require('../../conf/paths');
var buildnumber = require(paths.libdir + '/codebase/buildnumber');

var ModuleServer = require(paths.libdir + '/server/moduleserver');

var server = null;


function startServer (next) {

	server = new ModuleServer(next);

}

var app = {

	start: startServer,

	stop: function (next) {
		server.close(next)
	},
	restart: function (next) {
		server.close(next)
	},

	log: log
}
module.exports = app;
@@ -7,16 +7,20 @@
 aths    
+    
 = requir
@@ -46,76 +46,8 @@
 ');%0A
-var buildnumber = require(paths.libdir + '/codebase/buildnumber');%0A%0A
 var 
@@ -114,29 +114,56 @@
 );%0A%0A
-var server = null;%0A%0A%0A
+function Server () %7B%7D%0A%0AServer.prototype.start = 
 func
@@ -172,22 +172,16 @@
 on start
-Server
  (next) 
@@ -182,18 +182,22 @@
 next) %7B%0A
-%0A
 %09
+this.
 server =
@@ -225,53 +225,34 @@
 t);%0A
-%0A
 %7D%0A%0A
-var app = %7B%0A%0A%09start: startServer,%0A%0A%09
+Server.prototype.
 stop
-:
+ =
  fun
@@ -249,32 +249,37 @@
 stop = function 
+stop 
 (next) %7B%0A%09%09serve
@@ -264,33 +264,37 @@
  stop (next) %7B%0A%09
-%09
+this.
 server.close(nex
@@ -300,21 +300,37 @@
 xt)%0A
-%09%7D,%0A%09
+%7D%0A%0AServer.prototype.
 restart
-:
+ =
  fun
@@ -335,16 +335,24 @@
 unction 
+restart 
 (next) %7B
@@ -353,17 +353,21 @@
 ext) %7B%0A%09
-%09
+this.
 server.c
@@ -381,24 +381,10 @@
 xt)%0A
-%09%7D,%0A%0A%09log: log%0A
 %7D
+%0A
 %0Amod
@@ -401,8 +401,17 @@
 s = 
-app
+new Server()
 ;

clean up