Changed the wrapping of atomic values from attribute to text.

This makes it much easier to handle XML values, and prepares for JSON handling.
Changed RPC interface to run JS scripts to handle mixtures of files and strings to evaluate