Replace if-else statement with ternary.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Refactor text styling.

Instead of manually creating attribute maps and text objects, simply provide
a function that does most of this.  This simplifies and significantly
shortens the code that does this.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Fix a few old references to sub-databases.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Bump version to v5~pre1.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Merge branch 'master' into peter