Fixed up description for slideshare unit test
547 - Hiding chatbar and line numbers for etherpad previews
Retrieving default group joinable value from the admin config
Issue 543 - Hiding content and discussion libraries when the library owner has a non-public visibility.
(Issue550) Fix restoring preview items from revision

Copies the PreviewItems data from the previous revision when restoring a
revision.

No longer stores previews and content in timestamp-spaced directories,
instead revision directories. Should help exploding disk-space when
trying to fix / trobleshoot issues.

Add some additional tests for verifying small / medium images on other
document types.
(Issue550) Self review
#543 - Refactored resolveTargetLibraryVisibility into resolveTargetLibraryAccess

resolveTargetLibraryAccess now returns whether the current user has access to a library
and if he does, which library stream should be shown.
Removed JSON.stringify from error assertion.
Issue 551 - Returning 401 on group profiles that should be hidden and are not joinable.

Also added `canJoin` property.
Change name of 'copyRevision' property
Merge pull request #550 from mrvisser/issue-550

Restored revision has no preview items
Issue 547 - Refactor previews for collaborative docs.

Previews are now generated by retrieving the HTML from the API,
writing it to an html file and processing it with PhantomJS.

This speeds up preview generation significantly as we now no longer
need to join the pad on the actual etherpad instance and load
in all the assets.
Merged master in issue-547-remove-line-numbers-etherpad-previews
Expanded the JSDocs on getFullGroupProfile as per @mrvisser's PR review.
#553 - The `downloadPath` property should only be specified on content of resourceSubType `file`.
fix tests broken by DST
sort for consistent results
Using tenant default for visibility and joinability
Merge branch 'dsttests' of git://github.com/stuartf/Hilary into dsttests
Added a TODO for better timezone matching + documentation fixes