Add backend logic to handle xspf file to import/export playlist (#836)