changes for node and setter/getter fix

several changes for compatibility with Node.js and a new requestRoot
function for Node like environments, to make the Node.js test possible.
also a fix for the setter and getter functions for the application
scopes.