Integrated system for fluid delivery and analysis