Fix #6

Split search function into search and _do_search. search calls listAllPads,
and when the result comes back, it calls _do_search. Then _do_search calls
the original callback.

Tested against etherpad-lite release 1.3 and release 1.2.12.