Add support for java 8 character classes

Added plumbing code for feature detection, used it to add \R \V \H \h,
and the changes to \v.

This means we'll have to start testing on both java 7 and java 8.