Initial commit.

Includes misc utilities and the db library.