Khovanov's homology for tangles and cobordisms