Use main loop iteration simulation for testing the timeout
functionality. Add new tests for vpnd crashing alone, after and in
between user change process.
Implement some missing test cases to existing tests as well. Reorganize
tests a bit.
Add also fixes for most of the leaks and errors reported by valgrind.
Still some oddities left. Most of the leaks seem to be from the