Add support for package interface

Obviously this pull request is for a previous version, however I wanted to submit it as a pull request to demonstrate the mechanism. I am using this branch across three different internal projects here at Lookout used as requirejs packages/libraries for a fourth downstream project. Please consider iterating on this example and adding this functionality to the next release.