Allow generic filter functions to be used for specific filetypes, result is still cached.

Added filtering functionality, specify filters per extension in options object
Note: This could be used to run PHP files, among countless other things!