Error in Session.send_raw()

Addresses issue ipython/ipython/#4839.
Added test_send_raw() for issue #4839, see pull request 4840
Removed debug prints
Merge pull request #4840 from dsblank/master

Error in Session.send_raw()