Remove cycle of pointers in flight_vars_server

There was a cycle of shared pointers in session objects, as reported in
issue #22. The cycle has been broken by using a weak pointer in the
subscription handler.