CORE-5105 added aggregate permission retrieval code

(cherry picked from commit 14ef749a2559cddac0bc84900aa98e8d6a3d48b7)

Conflicts:
	libs/clj-jargon/project.clj
CORE-5105 fmt-perm accepts access-type-ids

fmt-perm was converted to a multifuction that can work with both FilePermissionEnums and with access type ids represented as a Long.

(cherry picked from commit 052ac87104176a81d77a16bcd289da0c74f43e89)
CORE-5105 directory endpoints now return aggregated perm

(cherry picked from commit b7bc32e5169cebea38f250496abee0cd54d5a4be)
CORE-5105 updated documentation directory-listing

(cherry picked from commit 47a566cb8a648e054e66c88c6dad50cfabda1429)
CORE-5105 search result entries have an agg perm

All search result matches have a permission fields that tells the client's aggregated permsion on the match.

(cherry picked from commit cf3fe0cd894fd8ac4cab331249461bbb3f2c9d60)
CORE-5105 fixed a search doc bug

(cherry picked from commit ab4d1edc0ed0ec364b0f359e044c1b362861b721)
CORE-5105 Grr, fixed another doc bug

(cherry picked from commit bb237666a2884c07d7f0be3a10be52dbadd4be34)
CORE-5321 Updated share endpoint to use permission keyword.

Added a set-permission function to clj-jargon.permissions.
Updated donkey.services.sharing to parse a 'permission' keyword from the request JSON instead of a 'permissions' object.
Updated donkey.services.filesystem.sharing/share and related functions to use the new set-permission function with the 'permission' keyword from the request instead of a 'permissions' object.
Updated sharing docs for new request JSON format.

(cherry picked from commit 9a58eb7b6098a2a21882322f53b7d765419a5656)
Merge branch 'dev' into CORE-5105
switched dewey to using clj-jargon's fmt-perm

(cherry picked from commit d6126f4eff4c82ca61a68767079105b1afee8eec)

Conflicts:
	services/dewey/project.clj
CORE-5330: Added the :aot section to the project.clj for porklock.
CORE-5330: Added code to create the analysis output folder to porklock.
Removed the checkouts.sh and install-checkouts.sh files.
Squashed commit of the following:

commit f83e20a92f7008175acbf952d5e69bdd236cc24e
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Thu Mar 27 08:41:30 2014 -0700

    Fixed building and archiving.

commit 7d457f3533d4e32123c381f53150d2ce29a10cae
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Wed Mar 26 16:25:09 2014 -0700

    Got symlinks mostly working.

commit 38bbec4b82f76ed51783fd0ad37cb4885aae9e7e
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Wed Mar 26 15:45:09 2014 -0700

    Fixed a typo.

commit 698271249f964eee6d75a1954fe892b0606102a9
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Wed Mar 26 15:41:57 2014 -0700

    The major work is done, now for debugging.

commit 9324f94f2ef54058b11a730fab539884f402299f
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Wed Mar 26 13:16:49 2014 -0700

    More attempts to make the script more flexible.

commit cc429a23896b0ca255de738418a0ef63f38d72cf
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Wed Mar 26 11:27:06 2014 -0700

    more fixes

commit 1e88915ae7b28f7a3ef8c8cdf98a9f7c58380c15
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Tue Mar 25 12:36:25 2014 -0700

    More development towards sanity.

commit 47af4942091ea4594ff4c7eeda6169ab92beddac
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Tue Mar 25 11:03:25 2014 -0700

    More work towards a better build script.

commit e5d53040ffaff28f16303ac38acfb139a83fe137
Author: John Wregglesworth <wregglej@iplantcollaborative.org>
Date:   Mon Mar 24 19:17:06 2014 -0700

    Started cleaning up the build script.
Added a docstring for (extract-project-name).
Added docstrings and comments.
Merge branch 'dev' into CORE-5105
Added some debugging output for the RPM builds.
Added more debugging statements.

Can't build RPMs locally, so into git this stuff goes.
Re-enabled builds. Fixed RPM builds (hopefully).

Removed the 'lein clean' in the (build-rpm) function because it was
cleaning out builds that we wanted to keep around to possibly get
archived. Oops.