Log errors instead of displaying them as a message
Sets explicit curl timeout of one second
Better PHP error handling if no response
Adds debug IP parameter. Thanks @daycounts!
Closes #2