Serializing playlists

Serializing the tracks model instead of writing the list of tracks in
text format.