Added support for trashing and archiving packages