Working on HttpURLConnection and did some refactoring

Sure hope this works or it's goingn to be a pain to recover from.
Compiles now