clean branch of memory_allocator changes

DO NOT MERGE THIS PULL REQUEST

Testing allocator code turned off for ios/mac. Code should build, but not affect anything.
Windows and android projects have not been updated, so should fail with unresolved symbols.