Fixed Rails 4 deprecation warning.
Cleanup.
Fix risky regexp.
Use attr_accessible as long as we migrate to strong parameters.