fix all Errors and Failures caused by name_controller_test,
except on probably due to enum issues
* fix use of assert_template and assert_redirect
* whitelist mass-assignable parameters
* some Style changes per [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide)
* miscellaneous other fixes
partial fixes to Errors and Failures in running observer_controller test
(But many Errors and Failures remain.)
  * fix use of assert_template and assert_redirect
  * additional whitelisted mass-assignable parameters
  * some Style changes per [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide)
  * miscellaneous other fixes