Add hecke_polynomial method to families. Create caches for basis and hecke_matrix. Some doctests. Other minor changes.