Generic Dao, User registration.

Signed-off-by: Zdeněk Dušátko <zdenek.dusatko@gmail.com>