Added logging with log4net and some error handling. DEBUG logging level will give details about contents of HTTP request and responses.