Add support for auto-allocation of coframes

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>