Filters

This also addresses #147 by adding pagination to the `/resources` route.  The `/relations` route still needs to be updated, however.