Use plone.api to access plone site.

Fixes #552, i.e. an issue with AJAX request from z3c.form inline validation.
Fix tree javascript for inboxes.

An empty js-selector evaluates to true as well. doh.
Merge pull request #567 from 4teamwork/deif-fix-inline-validation-error

Use plone.api to access plone site.
Merge pull request #570 from 4teamwork/deif-fix-inbox-tree

Fix tree javascript for inboxes.
Fix sort comparison.
Display a warning message in the download confirmation overlay when no file is available.

Fixes #463.