Resolutions of homology manifolds, and the topological characterization of manifolds