core: add history.search

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

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
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>
history: no need for nul-termination

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
search: fix memory corruption

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
gpaste: fix leak in search

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
gpaste: print more complete results for search

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

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Merge branch 'gpaste-3.14'

* gpaste-3.14:
  gpaste: use getopt_long
  gpaste: print more complete results for search
  gpaste: fix leak in search
  search: fix memory corruption
  history: no need for nul-termination
  gpaste: add search
  client: implement search
  daemon: implement Search
  core: add history.search