First run at unittests
More unit tests (for views)

Moved "Safe Mode" to request registry
(need to see if I can change the value without testing)