Fix Brakeman issues. Fix sql injection and javascript exploits.