[session/transaction] pass the session object to the Transaction __init__
This simplify access to variables. As we are moving more and more logic and
states in the Transaction it will greatly helps in future commit.
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".