Improve embedding API for Runtime

Allow to load ComponentLibrary from a string of the JSON,
make neccesary classes public.