Port of the AS3 runtime

This version is not functional, but we'll get there ...