Make stroke style of the graticule configurable

This PR supersedes #2441. My graticule-style branch includes one (squashed) commit only. It also addresses the comments @fredj made in #2441.

With #2441 reviewed already I'll merge this PR as soon as the Travis build passes.

Closes #2441.