Add async callback and result handling.

A simple callback framework is implemented, but not documented along
with a simple result handling mechanism. The callback mechanism from
Mozilla Storage is simplified and boiled down to the most basic needs,
which is just accumulating the rows for a select statement into an
array.

Signed-off-by: volks73 <cfield2@gmail.com>