Huge refactoring

Split some parts of encoder_control into encoder_state
(idea: encoder_control is immutable)

Goal is to allow multiple substreams in the future.
Add Laurent to CREDITS :-)
Address clang-analyzer warning.

- The assert needs to be before the initialization.