clean up .d.ts structure
- use directory structure matching DefinitelyTyped's structure so that
  interdependent definitions can be found
- use a single definition file to handle references to all external
  definitions
remove stale references to jasmine
simplify location of generated .js files
most projects appear to place their compiled .js files within the source tree
alongside the .ts sources.  using this layout simplifies integration with
IDEs such as WebStorm, allowing them to recompile the relevant .ts files
without any custom configuration.
ignore npm log
convert from restify to express
add a 'testLoop' target to rerun tests automatically