WIP: Start migration to capnproto.

Breaks compatibility.

Tree is currently broken.

Requires C++11 - check options for that at configure time. Include acinclude macros to do so.