allow usage of rails 4.
upgrade to rails 4.
remove rails 4 deprecation warnings.