add getTokensBefore and getTokensAfter interfaces (ref #735)
add getTokensFirst and getTokensLast interfaces (ref #735)
expose new getTokens methods to rule context object