First working FBL

Feedback loop code seems to work OK in terms of the software returning
counts and executing sweeps over the correct ranges; haven't tested in
actual experiment yet though.