Removed restriction on adding/removing headers once connection has started

#2142
Added tests to check that headers can be added after connection has started

#2142
Removed the headers error message from resources

#2142
Made changes as per code review feedback

#2142