Consolicating fastsolv

Maybe into a controller. Minor changes are needed on the API side for batch prediction as well.