Added support for libraries

Included test cases for coverage

It would be nice if we printed a message about `appID` even when `id` is provided.  E.g. if you specify both, we should log that `appID` is deprecated (and possibly log that it's ignored).