added api command resolve for a track

added the resolve command for a track and an automated way to handle redirects in the api call.