Adding proper use of url package in Http package and more fixes