services/mgmt/application/applicationd: rationalize permission list behaviour

Modify the implementation of permission lists in applicationd to

1. set a permission list associated with a specific application at the
time of uploading.

2. have the same permission list for all versions of an application
envelope.

Change-Id: Ie7a3875a11d639d16859f4b86316e4de0397b688
5 files changed