Fixed #24. Moved all HQL queries to named queries.
Fixed #23. Added Javadoc for web constant classes.