Fix mimetypes reading from Windows Registry

Seriously? It has to be the worst place to
look for anything of value...
Fix base64 of file attachments

Was only returning the base64 of the file path
not the actual file contents...at least on Windows
Use _attachments folder style for _docs docs

Consistency ftw!