Add the option to use BigEndian for varints.

Makes the library compatible with BitMessage too: see www.bitmessage.org.