Update rails version. Add jquery compatibility script to fix jquery tools. Add nested attribute for an image to a post