SLING-3019 - Provide a mechanism to install a bundle based on a
directory

Added JSON rendering of responses.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1534644 13f79535-47bb-0310-9956-ffa450edef68
SLING-3019 - Provide a mechanism to install a bundle based on a
directory

Allow updating a bundle from an uploaded jar file.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1534645 13f79535-47bb-0310-9956-ffa450edef68
SLING-3019 - Provide a mechanism to install a bundle based on a
directory

Code cleanups:

- Use IOUtils.closeQuietly where applicable
- Use logAndWriteError consistently

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1534646 13f79535-47bb-0310-9956-ffa450edef68
SLING-3019 - Provide a mechanism to install a bundle based on a
directory

Refresh bundles when both installing and updating, to make sure wirings
are correct.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1534647 13f79535-47bb-0310-9956-ffa450edef68