fix(locators): locators should use the root element provided in config

Previously, locators used 'document' as the root for their search. After this
change, they will use the root element provided in the config file -
`config.rootElement`. This will make sure behavior is correct if there are
multiple angular apps on one page, and also enables the getTestability
path, because that requires a root element under an ng-app.
refactor(mockmodules): add a base mock module to turn on debug info

This will be necessary after Angular commit
https://github.com/angular/angular.js/pull/8430

It should be a noop (which adds one webdriver command) for versions of Angular
before that one.
style(protractor): fix up jshint errors - semicolon and missing global