Add new utils

add some utilities created with the GodTools projects which better fit in a utilities jar
I don't think ByteArrayOutputStream.flush() does anything.