Folders - Cleanup

 * Moved `getFoldersForContent` and `authzPrincipalsToFolder` into `authz.js`