base64 implementation moved into a separate utility class

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>