Added RecordDetails and RecordEntity interfaces to generalize CRUD operations for enities.

Signed-off-by: Kavith Thiranga Lokuhewage <rc404mekt@gmail.com>