Implement Task.previous and Task.get_previous_completed

Move from Spotify internal to public
I would prefer if we put this either in the existing util.py or make util a package and have it import the existing util.py as well as this.
This way we can avoid making the root directory hard to navigate. We will probably move other modules out as well