Refactored libspotify logic into spotify.c/h