Switch from json to cap'n proto