Improve export controller tests
Remove unused friend controller and related test harness
Improve functional tests for user preferences
Fix a few user preferences bugs