Update rails to 4.0.5 for security patches.

Fixes #19