#968: Add bytestring_to_uint16, uint32, uint64 functions

Thinking about it, would it be better to switch the boolean to
indicate host- vs. network-byte order, rather than big-endian vs
low-endian?

Robin