Add package_state to App api.

'package_state' will be returned by the API amongst the rest of the App details.
The package_state is read-only, as indicated in the App api spec.