Updated rails to rails4. updated gems