Restored streaming capabilities, added mHeadersSent flag and accessor

Funded by ItOpen - http://www.itopen.it