Implemented record lookup
wired in new /api/record REST endpoint