Fredholm Theory with Applications to Random Operators