Upgrade dependencies and fix Node 0.10 issues.