Genetal improvements in DAO department.
Generic DAO was implemented.
All classes connected with DAO's were rewritten.
Tests were refactored too.
For this iteration everything works.
Small improvemen so that the test could work
Added primitive security checks through interfaces. It's temporary implementation untill i'll learn how to use ACL. Added simple tiles template
Turned on custom security check. Forgot to do it in previous commit
Deleted unused interface