Add base64 encoding per the pattern expected by the web interface. Fix some pointers and file size things in purr/files. TODO: files are cut off at random points, despite the efforts to remove verification of null characters in libbaseencode.