Enabled XeLaTeX tests.
Wrapped pdfTeX code in conditional.
Fixed test-single-chapter-xelatex.sh test script.
Fixed \pagestyle macros emitting spurious whitespace. Added tests.
Merge pull request #28 from godbyk/master

Fixed tests and spurious white space