Updated with better error messaging, traceback confirmed imported, improved readability of code.

While some of the changes may appear like auto-reformat they are actually renaming variables/function names to be more clear and formatting XML for readability.

Traceback should be included in the deploytools.  One pending change it to handle node_modules directory more gracefully when deploying a proxy (vs deploynodeapp) such that it zips up the node_modules directory instead of including it in the 'outer' zip.