fixed governor always tearing down buildings for cities and ports
factored out the replace buildings code

Signed-off-by: Stephen Lujan <StephenLujan@gmail.com>
Merge pull request #1 from StephenLujan/maintenance

fixed governor always tearing down buildings for cities and ports