core: move NTOHL and friends into byteorder.h

Setting of the param block with some newlines would improve the readability, I guess.