fix #934 Missing and duplicate tests in the suite
fix #858 bump dependencies

Sorted them alphabetically by the way. Minor code fixes done for new
versions of JSHint and Jade.

Close #916.