implemented discoverable API user interface

cleaned up json output to print well in console, or browser w/o affecting ajax
expanded some handlers to display top-levels