Updated version of the NSD implementation

There is an updated version of my NSD implementation on github, tagged as v2.

What’s new is:

  • v2 follows the latest draft of NSD
    • in particular, v2 uses promises (from cujojs/when.js)
    • it even uses promises for onserviceavailable and onserviceunavailable, which is sort of in advance of the latest draft
  • v2 uses the require.js packaging model for JS modules
  • v2 was cleaned up and refactored somewhat, in particular previous fixes have been better integrated and function names have been rationalized, and logging can be configured from a properties file