Add tests for CentralAuthPlugin

Add phpunit tests for most functions of CentralAuthPlugin. We can't yet
test anything that calls CentralAuthUser::importLocalNames() because
it's evil.

Change-Id: I8c5e6c35b505dd6251c2677375985eb48a4c85d3