moar rank tests
Move syntax rules stuff into rules/ subdir
Break Match and Capture out of pattern.js
add accessor for capture contents