Refactor internals to reduce method length and complexity

Refactor to create the readPackageJson and addRepositories protected
methods.
Merge stability flags

Extract and merge stability flags for requires.

Closes #9
Merge pull request #10 from bd808/issue/9

Merge stability flags