client: implement search

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
gpaste: add search

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>