Implemented memory tracking in debug builds.

Currently only implemented for windows/msvc.
All allocations are tracked with their callstack, allowing
a full dump of all allocations with stack to be produced at any time.