Explicitly expose XRegExp as a property on the global object

Fixes #55.
Optimize `indexOf`

Use a simple `for`-loop as it is faster than native function.

See [jsPerf](http://jsperf.com/thor-indexof-vs-for).

Closes #75.
Minor spacing
Merge pull request #1 from slevithan/master

fork sync