Merged 'dev'.
added several preparation steps
added protractor debug option