Add Nashorn test runner.

This adds a test runner for Nashorn, essentially porting the Rhino runner.