several fixes, added HTTP IO

Change-Id: I83b1f9b12097a2941f6cecee2cf3db47b38113fa