If environment variable HEADLESS is set to true, run a local browser

This makes it possible to run on a local Firefox (and Chrome) on a
Jenkins machine.

Also releasing patch version 0.2.18.

Paired with: Tobias Gritschacher

Change-Id: I8c6b57f827d57c6f5272ade5f0588249862bbf59