add package.json support

Adds links to dependencies in package.json. It sets a package flag when it encounters "dependencies" or "devDependencies" so it can be done in one pass. There isn't much else to look for that wouldn't be trumped by edge cases.

Resolves #1