Add pinserver authenticate module.

This module takes over some responsibilities from os_pinserver_auth.
openscholar/openscholar#3265