Bitfield cleanup

This branch adds my BitField class (BSD-licensed) to the Dolphin code base and converts a small number of structures to it. In the long term we should target a full conversion of the source code, but at this stage I don't think the advantage justified the effort, especially since the monotonous task might be prone to stupid errors.

Cf. PR #157 for details.