First commit of code

This is a stripped down version of the runtime system produced by the
EU FP7 project ACTORS and also available at SourceForge.