Refactoring front-end tests:
-Added a waitForElementVisible helper function.
-Changed ensure* functions to assert* functions, and they can now be
chained like any other webdriver promise.
Some more refactor and comments in front-end tests.
-Empty name changes are now rejected.
-Added assertion methods in front-end tests for elements being displayed or not.
-Added an assertText function to front-end tests.