Fix installed file permissions. Add ability to configure mime types.