Support future regular expression flags

https://code.google.com/p/esprima/issues/detail?id=557

This is quite a separate issue, I'll cherry-pick it to a different check-in.