memory cleanup fixes

* cookies variable was rebuild on each job start
* close curl transport on each atom finish to save cookies
URL builder

* Robust url builder and parser
* `helpers.py` cleanup
cleanup

remove hostfreq