Clean-up of gracelib.js

Adds inheritance, removed code duplication.
Makes built-in classes more uniform.
Adds 'isIdenticalTo' and 'isDifferentFrom' to class object.
Makes browser test index refer to JS tests.

Now that JS and C tests are separate, the browser
needs to look at the JS tests.