Fix build for clang/python3. Also remove -fpermissive
Add capnp-json serializer script. Also fix bugs in from_dict