Add better RTL support

This commit adds checking for the body direction to decide if it's an RTL document.

It also adds a default_left to handle correct left for LTR or RTL.

Thanks ;)