Changes to clean up how the code handles things when the basePath is not defined (and a default value is assigned to it) or when the user attempts to reload one of the "expanded views" (after a "GET" is submitted for one of the resources using the "Try it out!" button).  These changes make the UI much more robust