Various bug fixes.
Added ability to get / set scope variables in script from host application.