Updated some gems, removed others

This updates Rails to a security-fixed version (fixes #154).
Also updated a load of other gems to latest version, and removed some unused ones.