Add Mocha to devDependencies; add `.gitignore`

Specify Mocha as a development dependency and add the test command run
by `npm test`. Ignore the `node_modules` directory.
Small change to unit test helper

Move the function / closure out of the loop.
Small cleanup of example/demo files
Move example/demo into a separate directory
Update bower.json

Sync the version number with the `package.json`.
Update the ignores.
Merge pull request #10 from necolas/task/test-housekeeping

Some small adjustments to the project setup