Bump up rails version, reorganize gems.