Fixes #39: support of webpage.customHeaders

Added also the support of webpage.settings.userAgent (Issue #43)