Add code to retain entire trend downloads.

Add code to convert decks/trends to JSON blobs.