Configure core tests so as we can run with a browser
returned js values in runJavascriptFunctionImpl should be boxed, share method used for boxing js values
Fix Deferred.Promise.then() since it should pipeline Promises returned by filter functions. More tests