upgrade to rails 4.0.3

Also upgrades to curate v 0.6.5.