Adds CTidy for tidying on iOS and associated files, HTML fallback too.

Adds error reporting along with libtidy/CTidy

Further changes, HTML fallback added and introduced new constants for dealing with the tricky nature of XML tidying between platforms

Added ifdef for CTidy

Moved the location of the macros into MTConstants and MTFoundation-iOS