add initial version of grader.js and checks.json
minor refactoring to prepare for url support
add url support