State and federal dollars will go towards the demolition of Hamden’s old middle school and a new community center will go up in its place.