Add tests for ^ and $.
Don't match eof with dot.
Move regexp tests to a package-scoped variable.

If I can figure out how to correctly implement Regexp.Next,
I'll want to reuse these.
Merge pull request #13 from eaburns/re1

Add tests and make a minor bug fix.