Backported Base64 and referenced classes for JsonStreamerEntity to work on API lower than 8