Added Auditing functionality

Auditor gets called in all catch blocks
Error is written into audit file
Auditfile contents, platformData and deviceId get sent in a request
Audit is sent after sync-all-responses
Do a PUT request if the device's audit file has been sync'd once.
Make update request, log window name