add support for a generic query

This adds the option to pass a 'q' query item to your rest controller to easily search through all fields. It could probably be improved to omit the 'id' field, but I thought it'd be better to start to conversation here.