Added basic test coverage. Changed XHR payload format to JSON.

Previously, sendEvent was using a FormData object to wrap the event data in the XHR request. This has been changed to use a stringified JSON format for the event data, which makes the request payload testable. Also added an option to suppress XHR failures. Adjusted handleInteractionEvent to use ellocate.