Initial implementation of v2 allocator, with a lot of missing features. Only basic is actually selected to allocate currently.