AFL refactor

Still a work in progress, but builds upon #22 to use AFL inside SciDBArray.