Lecture notes given in PIMS at the University of Calgary in September October 2004. pdf file