Handle private acadre folder, update mime = pdf

Exit if called from web with info.
Exit if required modules not installed.
Able to handle private:// file scheme acadre folder.
Will update mime = application/pdf
Merge pull request #3 from jakobdo/patch-3

Handle private acadre folder, update mime = pdf
Approved. Thanks :-)