refactor GenericResource
refactor dao and service
change some styles; refactor js UI tools
Common properties of entities: __id, __digest
some styles changed