Added headers to on_message callback

Hello. I've added headers to on_message callback, sometimes it is essential to read them, as you can add extra information there. There was no way to do this before, so, therefore, my changes.