Apply bidi styles to references in Parsoid styles

This mirrors the rtlcite module in the Cite extension.

Change-Id: I6841baec2661426541e46bad58f09c7d3f456f9e
Merge "Apply bidi styles to references in Parsoid styles"