Implement storage engine selector.

Signed-off-by: Austin Seipp <aseipp@pobox.com>