Reorganised tree so we have a proper node package that can be
npm install'ed.
Changes to path resolving, using module.parent rather than ../../...