Reenabled the unique constraint on pin.
Added mocha and commands to run. Use 'npm test' for testing. Use 'npm run-script autotest' for autotesting ala Guard