Implement the percolate API to allow registering and deleting of percolate queries and checks of documents against existing registered queries

Interface discussed here: https://github.com/PoseBiz/stretcher/issues/54

Thanks!