Sanitize FS paths in ImportLibrary and comment-out more redundant code.
Address various FS issues arising from PR669 discussion.
Adopt TempFileManager in FS path unit tests.
Enforce top-level user-directory in managed repo

The decision was to maintain a top-level user directory
which has special permission handling. The directory
(of the form `%name%_%id%`) will be placed in the "user"
group so that it is visible from all queries.

NB: This does not yet fix the rest of the code that assumes
writing to the top directory is permissible!
Adjust repo dir to start with user only, and ask BF for required dirs.
Fix problem with creation of template directory.
Merge pull request #756 from mtbc/fs-path

FS path changes (post-PR669 discussion)