Using the CAP and other policies to support Smart Villages