Finished implementation of persistent downloads.