modified the the code for the latest version of API, 100% tested and passed examples test in production server

Now the scripts have been modified to test the latest version of api-server.  Next step is to figure out the gzip format uncompression and packaging.