Add support for deriving swift classes

This is a patch to correctly derive the Swift classnames from the fully qualified names in the data model.
It also includes changes to the templates to make the classes and members public so that they can be accessed from test targets.