Fixes and infrastructure support

Several fixes/updates that are useful to multiple dev branches.

* custom endpoint decorator, to reduce boilerplate
* Packages.misc_attributes
* Package.extract_file can extract the entire package