Criteria query improvement

Reducing possibility of query unconsistency (count vs get)
Preparing for criteria API function usage in all DAOs if necessary
Removing unnecessary functions
Trying to use coherent function calls in DAO calls - use functions from
abstract DAO
Some javadoc documentation
Some warning removal