Implement filter and state query url

I think this can be written more concisely with lodash, by just returning what you get from [`_.some`](http://lodash.com/docs#some).