Control Spotify OSX client using OSA commands
var spotify = require('spotify-osa')
All functions accept an optional callback as last parameter.
If id is specified, start playing that track/playlist/album, else just starts playback of the current song.
If playing, pauses.
Toggles playback.
Skips to next track.
Starts playing previous track.