Implement filter and state query url

I think there is something in lodash for this, so you could do something like `var filteredResources = _.filter(resources, function (resource) { return isInclude(resource, fields, terms); });`