upgrade to rails4 + update environments