New FEC framework, with unit tests.

For review. This works, but it's not to be merged just yet because nothing uses it yet. The new post-db4o client layer will use it heavily.
The recent "code style" discussion suggested to always use braces if I remember correctly.