Fixes to get unit tests compiling again.

Because of major changes in behaviour, out of the tests that had
been implemented, more than half are now failing.  Better rewrite them.

At least it's compiling.

Also fixed some things where there was unnecessary dependency on
ufront-easyauth etc.