Allowed for passing the visitor's IP address handily for background jobs

- Thrown exception whenever both visitor IP and ID are missing
- Added tests for background jobs
Merge pull request #6 from sebastien-fauvel/issue-6

Allow API calls from background jobs