Adds Directories functionality to Apache. Closes #1266; closes #1277