Fixed bugs, upgraded dependencies

I also tested the app against node 0.10.26 to prepare Cozy migration.

Please test it by yourself because I got some weird stuff while rebasing. Thanks!