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