Creates a hibernate configuration file with an extension .cfg.xml.
Also registers Hibernate Library with the project, if its not registered already.