Using package & packagefile id instead of their name. And fixes the model to use in case of packagefile request.
Fixes issues with duplicating, deleting & exporting packages after using package id instead of name in the request.
Fixes checkin-checkout behaviour for packages.