Rename Data and #to_hal_data

Renamed uses of `Data` to `State` in an attempt to make the API more
clear.