Move Opal helpers into their own file

This avoids some issue with precedence.
Support comments in the list of RubySpecs to run
Escape spaces in Regexp.escape
Properly conver to string in Regexp#=~
Cleanup and compliancy fixes for String#index