Rework Playlist API to use Option.
Make playlist API take int indices.
Clean up imports.