Laying the Foundation for Smart Cities