#22 Add support for attributes in generators

Added support for attributes in generator API. Also modified dbgen so
that it now accepts the --attr commandline argument that sets an
attribute (replaces the -o argument).

TODO: modify c_interface generator so that it can generate wrappers for
the core (#18 and #21).

This commit fixes #22