Adding support to pass session and environment via extra parameters.
Merge pull request #12 from jkeyes/sess-env

Allow session and environment to be passed via extra parameters.