Refactor record-slot api, unify better with html

Use slightly in spreadsheet, enabling saving, incomplete.