Record and replay web application user interactions