Rename attributes

This branch is based on `testdata-rebased2`, so there's one commit from that. The other commit translates attributes between camelCase and lowercase_with_underscores when necessary so that we can use camelCase in our JavaScript code.