Improvements to versaplex that were never merged

Hi Avery, there are a bunch of fixes on my versaplex master related to handling huge amounts of data (like the ones we had at the time). MySQL was also added (to some extent but...). I think it's worth merging.