Make percolator feature-complete.

Implement parameters into the registration of queries and allow specifying the type upon matching.

I will also implement the tests when the code is what you expect!