Fix bugs with multiline cells.
Fix bugs with multiline cells.

For cells whose last entry was itself multiline, we were executing the
raw input and not the ipython translated input, so multline cells with
ipython syntax were broken in this case.

Also fixed history management: we now correctly store raw/translated
information in the respective histories.

ipython/ipython,ipython/ipython