Move everything under the YamlDb namespace

This involves an unfortunate amount of indentation change, but c'est la vie.

Fixes #72