Send error description if authentication failed

Also reset formatting and use string constants to send events from Obj-C to Haxe.