The Public Economy of Urban Communities