A General Purpose Programmable Microfluidic Platform for Screening and Optimization of Biological Assays