vpn: expose history of state transitions via the API

Problem

the UI loses state transitions, so it needs a way of query the backend for important state transitions (connection, disconnects, retries, etc).

Definition of done

  • management.getStateHistory is moved to the VPN service (or the tunnel module).
  • the state-log is updated via the addListener mechanism.
Edited by Kali Kaneko