Technologies of management of territorial communities