http utils to unify tests and simplify the lib
removed request from af.js, all in the util