The server was not responding with the correct mime type for fonts/js/images

I added functions to the file to fix this issue and made the css function into a more general resource function so that we could serve more than just the css mime type.