Add support for https, fix bugs with error reporting and multiple http requests, add support for extra fields