More refactoring - name changes, split verifier.js into src/*.js. Added testing framework + some tests.