Fixed many bugs related to directory listings.
Rewrote json tree generation in directory view (which doesn't seem to be a view?)
Moved beehub directory view into the server source tree.
Made a fair amount of changes to it, too.