wip: refactor to move fb logic into separate classes, prep for background job.
fix test suite.
reduce requirement to 3.2.6
merge from master.