update to rails 4 and add gems for facebook integration