Maximal ideal space techniques in non-selfadjoint operator algebras