[MRG] ENH: Allow connectivity to be a callable in AgglomerativeClutering et.al

Fixes https://github.com/scikit-learn/scikit-learn/issues/3851 (It was marked easy, but I went ahead and fixed it)

The current AgglomerativeClustering conditions connectivity on the input data, which is prevents the reuse of the model for different data (if connectivity is provided initially) and definitely not in a pipeline where the input data is modified (as pointed by @jnothman ).

This fixes it by allowing it to be an int or a callable. If an int, then the kneighbors_graph is used.
    In [10]: from sklearn.neighbors import kneighbors_graph
    In [11]: lol = kneighbors_graph(X, 3).toarray().tolist()
    In [12]: from sklearn.cluster import AgglomerativeClustering
    In [13]: agc = AgglomerativeClustering(connectivity=lol)
    In [14]: agc.fit(X)

I meant this would raise a list has no shape attribute error. Is that ok?