Add sample for blog post 'How to Create Session Factory in Hibernate 4'