Systematic recoding

@hundeboll @mortenvp Let's discuss the changes here before we merge.

We currently have a nasty issue with clang 3.3:
http://buildbot.steinwurf.com/builders/kodo-debian8_64-cxx_clang33_x86-py27/builds/201/steps/build/logs/stdio

We will have to fix that before merging the sliding window coders into the master.