Implement Task.previous and Task.get_previous_completed

Move from Spotify internal to public
Refactor previous as utility functions
Use clone instead of class constructor
Move previous to util.py
Merge pull request #472 from sisidra/sisidra/task-previous

Implement Task.previous and Task.get_previous_completed