First commit of runtime system.

Common runtime system.