Added support for ``bind`` parameter to session.

This fixes #113