Started locking down dependency versions.

Fixed some jade template problems revealed by the jade version bump.