Completed basic API routes for primary record lookup and search lookup.