NXBT-797: cleanup

Sort methods in PackageDescriptor
NXBT-797: Use PackageState instead of int

Add org.nuxeo.connect.update.Package.getPackageState() method
Deprecate org.nuxeo.connect.update.Package.getState()
Remove deprecated use of org.nuxeo.connect.update.Package.getState()