[spec] fail selenium on JS errors
[spec] fail selenium on JS errors

...And log everything that was logged to the console to the rails log
for that test

Test plan:
* you should have better clues as to what caused a selenium error
  when you get a failure because of a javascript error

Change-Id: Ic487e52818b4bd525f0dcdfb25a21009f1a770e0
Reviewed-on: https://gerrit.instructure.com/168380
Tested-by: Jenkins
QA-Review: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>
Product-Review: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>
Reviewed-by: Tucker Mcknight <4b51b98c1d84aa97854d216bd061ce5d3eda8a28@instructure.com>

instructure/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,djbender/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,sfu/canvas-lms,instructure/canvas-lms