Optional custom new tab URL

This resolves #979.
A test for this would be useful.