Registers that once merely rang up tabs and stored cash have evolved into hubs that collect enormous volumes of data.