use symfony to handle responses
tidy up the mime guessing