expose ErlRuntime as API and remove factory