[WIP] Upgrade to rails4