Add base64 lib and various preparations