added basic RESTFUL start.

added Hibernate sessionfactory.

added IdFactory.