Added the ability to associate a context with an stream (no change yet, will see if it makes sense to switch streams later).
Forward and Backward operations will throw if the context is not initialized.