Add possibility to easily publish multiple events inside the same transaction + add transact function to context