runtime: wip: moved where messages and thread headers are.
runtime: wip: adding a block_gateway_impl.