Use marionette instead of phantom in performance tests.
Add network simulation.
Changed cache tests to 2 seconds.
Merge branch 'tests' into develop