Expose Tab object in the context.

Instead of passing specific Tab properties, it's probably much better
to pass the whole object. Keeping old variables for backwards
compatibility.