numerous fixes found during unit testing

fix header of get requests
add client wrapper to bypass ssl cert issue
debug statements