Add a setting for RTL text direction (integrating the url paramter)

Fixes #1191