new dbcore.types module

Now Type is proper, full-on class so we don't have to fit everything in a
lambda.
rewrite: flatten Confit view to string

Previously, this would pass around a ConfigView object which would only lazily
get turned into a string. Bad!