proplery send empty requests
added logging, clean up
clean up, fix http parsing
moved connection into own file