upgrade to rails 4

includes some amendments to specs to make them work