Moved more server settings into config file, and added error flash when uploading incorrect file type.