CB-6421: Move tests from e2e to spec

Removing the duplicate tests first as a separate commit (for better history).
CB-6421: Move tests from e2e to spec

Part 2, move all the files and delete e2e dir.
For history of old overwritten tests in spec try
git log 5cf9d9064005ff7bc6205c05277169b929e52fb5
CB-6421: Move tests from e2e to spec - cli test

After e2e dir was merged into spec/ there were interferences between the e2e
tests and cli.spec.js. Jasmine runs all tests in a single process, therefore
process-global settings like event listener (un)registration can cause
interference between the tests.

github: close #159