UniversalDao and controller

Implementation of universal dao and rest controller.