upgrade to rails v4.0.2

This is a pretty straightforward upgrade to Rails 4.
The configuration files were updated to match those of a new project, yet keeping the lobster-specific parts.