Changes all setTimeout and clearTimeout to use Angular's $timeout.