Remove mocha-as-promised.

Mocha provides native support for promises as of v1.18.
Update all dependencies to latest versions.

Also change semver range to use ^ instead of ~ and remove unused
karma modules.
package.json: remove bin scripts