“What I’d like is if there was a published specification for storing a music library. Then, any device could implement it.”

That’s why iTunes includes an XML file in the music folder. So other apps can easily access music and playlists (either for playback or syncing with non-Apple devices).