Add bit-fiddling and hex methods to toolbox

* Adds bit-wrangling methods to izettle-toolbox.
* Mostly copied from ByteUtils in izettle-commons.

Ping @adamvoncorswant @fiddeandersson