[wip] 16494 Protractor (JavaScript e2e) tests

:warning: **Includes commits from #2067. Please review, merge first.**

https://www.openproject.org/work_packages/16494
N.B. I don't believe this is working yet.