Add lodash and Q
Fix screenshot taking by waiting until all pages has been captured