added hibernate and ejb configuration.
added i18n.
reorganized code.