Added Logger Class to handle bespoke logging to a database when ready.
Added CrashException which will cause the XML to be marked as failed
when it occurs.