Refactored protractor files and cleaned up unused.