cros_ec: Move EC interface into common library