Fix karma unit tests.
Remove tests relating to obsolete need_paths_update().

The new code checks whether a new path find would be equivalent to the currently
running one. This is much simpler than the old need_paths_update() and much more
reliable as well.

The tests that were covering the old complex logic are no longer needed now.
Switch Karma -> Protractor for e2e tests. Clean-up dependencies.