add compatibiliy layer for ccn

This commt add a compatibily layer for the original ccn
code. It tries to use as much code from ccn AND riot.