Added support for JNLP authentication.

Fixes #60