Make our db Session usable as a context manager
Switch some usages of Session to new context manager support
Make sure flexget arguments are always used as unicode. fix #2726