Adding proxy capabilities and some debugging statements

This works to enable proxy usage in our env, it also adds a few debug print statements to track where you are at in the program flow. Feel free to remove the debug statements.