Modify ArrayList to List

This change modifies some of the ArrayList to List to allow
polymorphism.

Eg. ArrayList taskList = new ArrayList()
becomes
List taskList = new ArrayList()