[CB-5416] - Need to auto generate manifest.webapp with appropriate plugin permissions

Review request, please don't merge. I'll send a PR to apache's repo after a r+.

Next steps:
- Update plugins to support this.
- Update documentation