Added a fast no-message RPC interface to the layout task.
Merge pull request #3164 from cgaebel/layout-rpc

Avoid using message passing for simple JS -> Layout "rpc-like" queries.