[lang] Refine getOrCreateSpace function.

The getOrCreateSpace function is deprecated. The
getOrCreateSpaceWithSpec function is replacing the deprecated function.
The getOrCreateSpaceWithID function is introduced.

see #242

Signed-off-by: Stéphane Galland <galland@arakhne.org>