Added response headers
Switched to another Base64 implementation