Add support for external auth scripts
add plugin to resource
add support for tls renegotiation
Fix template