New ObjectManager / ID class.

Didn't have much time to de optimize, but I think I did an ok job. Don't
have vs 2013 up and running yet so hopefully this doesn't break anything.

I think I can get a couple more allocations in here somewhere. Need to do another deoptimization pass on this and make it a little more readable.