build connection & read/write frame utils
close status code to indicate reason for closure
perform http upgrade