spdy: add settings frame build function and test