Created cli library - incomplete so far.

 - Enables to create multiples instances (contexts) for the
 lib in the same process.