Add a prototype of the new xmap API
At the moment all resources are emulated through vectorization, but it
should be good enough to let us play with some toy examples.
The current implementation is very much a prototype and might end up
being very user unfriendly, because it never checks its assumptions.
Violating them will likely result in a pretty weird error.