Add initial implementation of shmalloc & friends.