ZMemoryManager changed.

Implemented apply/resetPermissions methods, modified allocation required size calculation.
Refactoring.

Remove FreeSpaceStart variable.
ZMemoryManager tests updated.