more decoder work. Extract codec common code in a separate file.

--HG--
branch : pure-cffi
introduce from_cdata for Packets, drop raw_pkt

seems cleaner and better in the long run.

--HG--
branch : pure-cffi
Merge ../pyrana