Fix exception names and CLI args

Fixes two bugs:
* Renames HTTPNotFound -> NotFound to match openstack.common.exceptions
* Fixes positional argument names (package-id -> id with metavar) and
  adds shell tests to check parsing
* Uses temporary files in unit tests to correct intermittent test failure

Change-Id: I273e9af6e55f20965b143290c207e88ee062b0c0
Closes-Bug: #1339208
Merge "Fix exception names and CLI args"