fixes #5402 - adding feature to remove packages from library repos

Ready for review, but still have:

*[] add javascript tests
*[] add controller test
*[] add action tests
*[] address comments