Added permissions for http://*/* and https://*/* so the extension can make cross domain requests.
Created function to send HTTP requests so it can be reused for other server implementations.