Use stand-alone algorithm module

I factored out the flow library into a standalone module. This commit
upgrades Aspen to use the standalone version.