Allow filtering by attributes

The web code is really, really nasty.