http step cleanup and test

- add GPL header
- change coding style
- add tests

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>