Implement Session::open_url.

You can now create new session with:
Session::open_url(“amqp://username:password@server:port/vhost”)

If you don’t supply some params the defaults will be used.