Refactors to use promises (bluebird).

It indeeds leads to cleaner code. Also, the errors are actually
meaningful, and correctly handled on the view level.

I also removed chokidar from the server, it should just be on the
binary. This way, the server remains as lightweight as possible.