ControllerEngine fixes.

* Rename PitchFilter to AlphaBetaFilter.
* Replace references to pitch in ControllerEngine with rate.
float -> double conversions in ControllerEngine.
ControllerEngine code health misc.

* Extract some common functions.
* Use real names for controls instead of "cot".
* Misc. style.