Lua support to access the repo data and implement getEntity

Change-Id: I9fd05c36f32bffdeb15fb793e7c3332032b3541e