Redesign in chunk and injector

Splitted ChunkMgr in two different classes, renamed some methods, made
some other methods more readable. Unit tests not updated yet.