wip header rewrite
All libcore usage hidden. Fix obscure buffering/replay bugs in SSL.