Add Filetypes.extensionFor(s) function

Hello,

I was helping some people on Stackoverflow and I found a need for the extensionFor(s) function. What do you guys think?

Oh, and I fixed test too!

Thanks!