app structure

this provides the query methods for single files and folders. Need to integrate henge front-end code from master.