Smaller refactoring of password util.
Renaming due to naming convention.
Merge pull request #14 from chrismayer/naming-convention-dao

Renaming due to naming convention.
Introduced a better class detection for Hibernate-Entities.
Improved the class detection within the generic get-interface in order to have a
more robust mapping of the given object-type to the corresponding DB-Entity-Class.
Encapsulated the class detection for Hibernate models.
Introduced a method to detect the Hibernate model for a given object
type due to the fact that this functionality is needed more than once.
Extended the database configuration XML with Hibernate packages.
Introduced a bean holding the package names with the Hibernate entity classes
in order to inject them into some Java classes.
Merge pull request #15 from chrismayer/improve-db-model-detection

Improve db model detection
Added code to avoid cross-products when querying entities with sub entities.
Improved the methods in the DatabaseDao for querying objects from the database
with Hibernate so they do not return a cross product with identical records.
Ensured that the returned User object has distinct modules.
Merge pull request #16 from chrismayer/avoid-cross-products

Added code to avoid cross-products when querying entities with sub entities
Let the updateEntity method return the persistant object.
Merge pull request #17 from chrismayer/update-entity-dao

Let the updateEntity method return the persistant object.
Added LayerMetadata-information to MapLayer class
Extended the MapLayer Entity with a set of key-value-based metadata records
Merge pull request #18 from weskamm/layermetadata

Added LayerMetadata-information to MapLayer class
Added User Entity to MapLayer
Added User including getters and setters to the MapLayer Class in order to get 'granted Users' for a MapLayer instance
Merge pull request #19 from weskamm/maplayerusers

Added User Entity to MapLayer
Annotated the DatabaseDao class as default

Added the annotation @Primary to the DatabaseDao in order to tag 
it as the default class for dependecy injection via 'autowiring'. 
Will be needed when sub-classes of this class are introduced.