Rewriting with chunks

All code in src_old has to be rewritten to make use of the new ‘manual’
memory management… Refactored modules that already work are available
in the normal src folder