shell: adapt ccnl commands to changed API
shell: adapt ccnl commands to changed API

Also removes some code duplication

ks156/RIOT,thomaseichinger/RIOT,katezilla/RIOT,jbeyerstedt/RIOT-OTA-update,rousselk/RIOT,jasonatran/RIOT,Josar/RIOT,neiljay/RIOT,brettswann/RIOT,wentaoshang/RIOT,smlng/RIOT,attdona/RIOT,rajma996/RIOT,asanka-code/RIOT,syin2/RIOT,jremmert-phytec-iot/RIOT,kaspar030/RIOT,yogo1212/RIOT,basilfx/RIOT,toonst/RIOT,plushvoxel/RIOT,malosek/RIOT,brettswann/RIOT,kb2ma/RIOT,kerneltask/RIOT,kYc0o/RIOT,rousselk/RIOT,malosek/RIOT,gautric/RIOT,mfrey/RIOT,malosek/RIOT,ant9000/RIOT,OlegHahm/RIOT,jremmert-phytec-iot/RIOT,mfrey/RIOT,rajma996/RIOT,plushvoxel/RIOT,kaleb-himes/RIOT,d00616/RIOT,Ell-i/RIOT,kYc0o/RIOT,backenklee/RIOT,basilfx/RIOT,adjih/RIOT,smlng/RIOT,adrianghc/RIOT,jfischer-phytec-iot/RIOT,x3ro/RIOT,wentaoshang/RIOT,d00616/RIOT,Ell-i/RIOT,dailab/RIOT,Hyungsin/RIOT-OS,gautric/RIOT,adrianghc/RIOT,toonst/RIOT,gebart/RIOT,BytesGalore/RIOT,BytesGalore/RIOT,tfar/RIOT,alignan/RIOT,MohmadAyman/RIOT,tfar/RIOT,authmillenon/RIOT,zhuoshuguo/RIOT,TobiasFredersdorf/RIOT,A-Paul/RIOT,dkm/RIOT,josephnoir/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,kbumsik/RIOT,brettswann/RIOT,toonst/RIOT,miri64/RIOT,jasonatran/RIOT,tfar/RIOT,brettswann/RIOT,altairpearl/RIOT,Hyungsin/RIOT-OS,kerneltask/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,authmillenon/RIOT,zhuoshuguo/RIOT,wentaoshang/RIOT,neiljay/RIOT,miri64/RIOT,kaspar030/RIOT,smlng/RIOT,jasonatran/RIOT,LudwigKnuepfer/RIOT,malosek/RIOT,kaspar030/RIOT,kbumsik/RIOT,immesys/RiSyn,asanka-code/RIOT,authmillenon/RIOT,TobiasFredersdorf/RIOT,beurdouche/RIOT,x3ro/RIOT,ks156/RIOT,dailab/RIOT,x3ro/RIOT,basilfx/RIOT,mtausig/RIOT,OlegHahm/RIOT,rajma996/RIOT,ant9000/RIOT,A-Paul/RIOT,thomaseichinger/RIOT,beurdouche/RIOT,katezilla/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,kbumsik/RIOT,rousselk/RIOT,beurdouche/RIOT,smlng/RIOT,LudwigOrtmann/RIOT,kYc0o/RIOT,attdona/RIOT,biboc/RIOT,plushvoxel/RIOT,immesys/RiSyn,gebart/RIOT,gautric/RIOT,roberthartung/RIOT,mtausig/RIOT,LudwigOrtmann/RIOT,plushvoxel/RIOT,jremmert-phytec-iot/RIOT,kb2ma/RIOT,miri64/RIOT,RIOT-OS/RIOT,kb2ma/RIOT,neumodisch/RIOT,roberthartung/RIOT,OTAkeys/RIOT,biboc/RIOT,jbeyerstedt/RIOT-OTA-update,katezilla/RIOT,asanka-code/RIOT,Josar/RIOT,authmillenon/RIOT,lazytech-org/RIOT,biboc/RIOT,mfrey/RIOT,backenklee/RIOT,syin2/RIOT,hamilton-mote/RIOT-OS,FrancescoErmini/RIOT,rakendrathapa/RIOT,gebart/RIOT,katezilla/RIOT,LudwigOrtmann/RIOT,kbumsik/RIOT,wentaoshang/RIOT,rakendrathapa/RIOT,neumodisch/RIOT,avmelnikoff/RIOT,FrancescoErmini/RIOT,kaspar030/RIOT,altairpearl/RIOT,josephnoir/RIOT,LudwigOrtmann/RIOT,rousselk/RIOT,kaleb-himes/RIOT,rousselk/RIOT,altairpearl/RIOT,alignan/RIOT,authmillenon/RIOT,neiljay/RIOT,cladmi/RIOT,wentaoshang/RIOT,aeneby/RIOT,jasonatran/RIOT,beurdouche/RIOT,altairpearl/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,MohmadAyman/RIOT,mtausig/RIOT,Ell-i/RIOT,rajma996/RIOT,LudwigOrtmann/RIOT,alignan/RIOT,d00616/RIOT,FrancescoErmini/RIOT,zhuoshuguo/RIOT,smlng/RIOT,hamilton-mote/RIOT-OS,rakendrathapa/RIOT,malosek/RIOT,aeneby/RIOT,miri64/RIOT,asanka-code/RIOT,x3ro/RIOT,OTAkeys/RIOT,rakendrathapa/RIOT,jfischer-phytec-iot/RIOT,tfar/RIOT,lazytech-org/RIOT,gautric/RIOT,OlegHahm/RIOT,A-Paul/RIOT,katezilla/RIOT,backenklee/RIOT,mtausig/RIOT,hamilton-mote/RIOT-OS,dailab/RIOT,kerneltask/RIOT,Ell-i/RIOT,RIOT-OS/RIOT,rajma996/RIOT,neumodisch/RIOT,miri64/RIOT,syin2/RIOT,kaleb-himes/RIOT,Josar/RIOT,jbeyerstedt/RIOT-OTA-update,attdona/RIOT,jfischer-phytec-iot/RIOT,kaleb-himes/RIOT,dkm/RIOT,wentaoshang/RIOT,lazytech-org/RIOT,RIOT-OS/RIOT,MohmadAyman/RIOT,adjih/RIOT,ks156/RIOT,rakendrathapa/RIOT,immesys/RiSyn,toonst/RIOT,OTAkeys/RIOT,OlegHahm/RIOT,yogo1212/RIOT,altairpearl/RIOT,d00616/RIOT,backenklee/RIOT,OTAkeys/RIOT,FrancescoErmini/RIOT,kb2ma/RIOT,cladmi/RIOT,adjih/RIOT,ant9000/RIOT,BytesGalore/RIOT,MohmadAyman/RIOT,thomaseichinger/RIOT,mtausig/RIOT,cladmi/RIOT,LudwigOrtmann/RIOT,rfuentess/RIOT,TobiasFredersdorf/RIOT,brettswann/RIOT,rfuentess/RIOT,LudwigKnuepfer/RIOT,neumodisch/RIOT,Ell-i/RIOT,kYc0o/RIOT,jbeyerstedt/RIOT-OTA-update,TobiasFredersdorf/RIOT,avmelnikoff/RIOT,FrancescoErmini/RIOT,immesys/RiSyn,kaleb-himes/RIOT,biboc/RIOT,neumodisch/RIOT,neiljay/RIOT,gautric/RIOT,yogo1212/RIOT,kYc0o/RIOT,neumodisch/RIOT,x3ro/RIOT,biboc/RIOT,LudwigKnuepfer/RIOT,mfrey/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,ks156/RIOT,ks156/RIOT,attdona/RIOT,tfar/RIOT,asanka-code/RIOT,zhuoshuguo/RIOT,Josar/RIOT,kerneltask/RIOT,jfischer-phytec-iot/RIOT,syin2/RIOT,jasonatran/RIOT,roberthartung/RIOT,alignan/RIOT,d00616/RIOT,plushvoxel/RIOT,BytesGalore/RIOT,roberthartung/RIOT,d00616/RIOT,adjih/RIOT,cladmi/RIOT,rfuentess/RIOT,jremmert-phytec-iot/RIOT,neiljay/RIOT,josephnoir/RIOT,Hyungsin/RIOT-OS,yogo1212/RIOT,dkm/RIOT,Josar/RIOT,dkm/RIOT,syin2/RIOT,immesys/RiSyn,aeneby/RIOT,basilfx/RIOT,adjih/RIOT,josephnoir/RIOT,beurdouche/RIOT,aeneby/RIOT,attdona/RIOT,rajma996/RIOT,dailab/RIOT,attdona/RIOT,yogo1212/RIOT,kerneltask/RIOT,asanka-code/RIOT,rousselk/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,LudwigKnuepfer/RIOT,lazytech-org/RIOT,gebart/RIOT,A-Paul/RIOT,brettswann/RIOT,yogo1212/RIOT,zhuoshuguo/RIOT,gebart/RIOT,ant9000/RIOT,OlegHahm/RIOT,kb2ma/RIOT,thomaseichinger/RIOT,mfrey/RIOT,immesys/RiSyn,jremmert-phytec-iot/RIOT,backenklee/RIOT,A-Paul/RIOT,hamilton-mote/RIOT-OS,jfischer-phytec-iot/RIOT,avmelnikoff/RIOT,josephnoir/RIOT,Hyungsin/RIOT-OS,rakendrathapa/RIOT,adrianghc/RIOT,altairpearl/RIOT,toonst/RIOT,aeneby/RIOT,authmillenon/RIOT,adrianghc/RIOT,basilfx/RIOT,hamilton-mote/RIOT-OS,kbumsik/RIOT,MohmadAyman/RIOT,roberthartung/RIOT,dkm/RIOT,thomaseichinger/RIOT,ant9000/RIOT,MohmadAyman/RIOT,malosek/RIOT,OTAkeys/RIOT,rfuentess/RIOT,Hyungsin/RIOT-OS,jbeyerstedt/RIOT-OTA-update,jremmert-phytec-iot/RIOT,adrianghc/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,lazytech-org/RIOT,dailab/RIOT,LudwigKnuepfer/RIOT,TobiasFredersdorf/RIOT,cladmi/RIOT,kaspar030/RIOT,FrancescoErmini/RIOT,alignan/RIOT,zhuoshuguo/RIOT