StringScanner for Opal

This is a port of strscan from the ruby stdlib. It is designed to run on opal.