Looongg overdue commit. Rewrote chunking model. Converted most of the old P_Modules to use the new model. Fixed several bugs. Introduced a lot of bugs.