Added concept of filetype to generic server. Now it checks the file extension to determine the Content-type.