Beginning of integration of CLI (shell) with John's API code.  Currently is not working but is a start...