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
this should not be possible. so should be an error IMO