Bugfixes to JSON RPC handlers for contacts.
Added test login.
Bugfixes to endpoint initialization in SyndicateMail.
Added contacts tests.