refactored content retrieval functions
refactor getContentTree to include dir object with children array
menu refactor
whole bunch of refactoring