handling 404s

This should fix both the change events and the infinite looping described in #718.

Needs tests.

This PR relies on current master, it doesn't work when your rebase it on the current rs.js version of starter-kit, because there `this.local.setNodes` doesn't fulfill its promise when you set no nodes. This was in itself a bug, but since it is already fixed in master, we can ignore it.