Oscillatory and Fourier integral operators with degenerate canonical relations