Make document footer component handle rtl content

For RTL content change the text direction and swap the floats so the
reading edge is the other side of the page. There will be a future bit
of work for adding translations to the strings in the component.