Subnote metadata

When clicking "Publish all", all notes and subnotes should be marked as published.

This changes the way we store the published status for subnotes, allowing us to mark them as published/unpublished without having to deserialize the JSON blobs that store them.