core: move NTOHL and friends into byteorder.h

The proper answer is probably that I indented everything to the length of `@param[in,out]` so even if an in-out parameter was added, everything would still be properly aligned.