altoslib: Create new abstraction underneath AltosState for recording values