Create and add tracks to playlists

Added new library methods for creating new playlists and adding tracks
to them. The Example server demonstrates those APIs with a new
'duplicate playlist' feature.