The City of Toronto spent months laying out plans to clear about two dozen people from a homeless encampment in a popular park last summer, building dossiers on those living there and involving hundreds of municipal workers in the process, internal documents reveal.