Implemented sub packages. Fixes #67.

Sub packages are referenced using the syntax "main-package-name:sub-package-name" and can be defined using a "subPackages" field or by putting package.json files in subdirectories of the main package.