Various API/code improvements

 * CheckInternetAccess now returns an err_list and actually
   returns errors if they are found
 * Reset state after tests to avoid breaking subsequent tests
 * add DEBUG_DEFAULT (set to the DEBUG value originally set in
   debug.go)