obazoud/statusdashboard — pull request #36 by stelcheck (2013-01-16 08:34:56+00:00)
Title: Modularization, dynamic service add/remove, refactoring and (possibly) bugfixing

First, my apologies. I REALLY went overboard with changing the code. Rest assured though that as far as I have seen it should all work.

This addresses mainly https://github.com/obazoud/statusdashboard/issues/35 and https://github.com/obazoud/statusdashboard/issues/34. I have already wrote a first integration in my application, and the service list basically updates itself using node-mdns. Pretty cool stuff :). Now I will be using the events from the api to enable and disable other higher level service across our architecture with it.

It also, I think, makes the code more readable, and standard (I jshinted the files I modified as I go). I fixed a few things here and there (see commit log).

I would still need to fix a thing or two before really having something ready (for instance, moving default config to server.js so that it is taken in consideration when starting statusdashboard from code), but I thought I should let you guys know of what I had done in terms of changes.

Again, apologies for the aggressive rewrites, but I hope you will find value in what is in this.