[james] refactored the visits controller to keep track of a customer object rather than juggle a bunch of ids.