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
Address a loss of precision error by typecasting to int.