Roots v3 compatibility

Updates the parse and save methods for the `Content` class to support roots v3 (this breaks support for v2 dynamic content). Also cleans up some of the code in there.