Added setDefaultContext method and filter for tryton url #4744

* Converted 'session' factory to service.
* Method to set default context
* Filter to return tryton Url of an entity
remove