Added ability provide a filter function

Let's say you didn't want to server a certain folder or type of file that you store in the public folder. This allows you to pass a callback that is just a more general version of the hidden filter.