Added support for libraries

Included test cases for coverage

Let's make this `app` instead of `apps`.  When using it, you will be publishing a single app, so the function should be singular.  (Same goes for `libs`.)