Proper use of namespace.
Fixed shutdown sequence.
Reworked timer thread.
Reworked video thread.