Added real configuration files, extended exception handling and MIME support