The city Tuesday purchased the four-story apartment building at 5 May St. that has been at the heart of a controversial Main South affordable housing project.The $200,000 purchase was made at an on-site public auction late Tuesday morning that drew about two-dozen people, including interested developers, neighborhood activists, residents and representatives from community development corporations.