API for the RuntimeFramework and its construction + tests

@rima-alali