Refactor a bunch of stuff re: session closing, add test cases
Such tests. Very mocha. Much chai. Amaze!!!

ERHMAGERRRD testing frameworks are so the best. Removed all our custom
code for ensuring test exclusivity and doneness and isolating callbacks
and everything. mocha does it all for us, and makes it pretty.

Also rather than return a long chain of promises that eventually resolve
to truthiness, we now use chai to make assertions about what is good and
right in the world.

Recommended reading:
  https://visionmedia.github.io/mocha
  http://chaijs.com/api/assert/
Add qrcode from https://github.com/davidshimjs/qrcodejs
Add entirely untested secondary device init
Fix not-allowed inline scripts error
Fix a missing function and dont blow up on delivery receipts
Add a note about running tests locally
Fix typo and add links to mocha and chai docs
Correction to url
Update readme
Remove ping, update to latest spec proposal
Travis-ify

Set up for travis ci with mocha-phantomjs.

Not quite working due to phatom's lack of support for some modern
browser features, like Promises.