Relocated codec classes to lib.codec package.

This is needed so the flume build is possible even for people who are not working on dt-0.9.4 branch.