Add logic for Angular to inject mock modules itself

(see https://github.com/angular/protractor/pull/1155)