Implement base64 encoding, add test page