Move unit tests to package 'example'.

Instead of 'example.test'.
Upgrade to Scala.js v0.4.0 and its breaking changes.