Updates for migrating to Rails 4

add Strong Parameters codes to controllers
update model scope definitions
fix rake tasks