Update gems and configs for rails4
Use strong_params and before_action