runtime: Add initial support for subgraph to runtime
Add initial subgraph component support to JavaScript side

Most of the infrastructure is now in place, but there are some bugs
in message forwarding still. Refs #4