Added another method to create an entity record in the database.

Method creates a record in the database by a given Java object and returns the
persistant representation. An automatic cast by Template is done here, so the
method becomes more flexible.
Use the Template <T> in createEntity method as method parameter.
Merge pull request #22 from chrismayer/new-create-method-dao

Added another method to create an entity record in the database.