Add support for navigating directory trees.
Fix getDirectoryListing.py JSON output.