Revise addBeforeSendHeader for generic uses

- and move needReferer to under options
Bump the version to 1.5.0