Began to add improved download code
Got download thread working with pause and resume