Added more generic test system for encoding functions

RFC4648 includes a number of example cases for base-n encodings, and I have
wanted to use these for some time. I have added some generic testcases to
tests/encodings.c, all of which are processed in order to exercise encoding and
decoding functions.

closes #10