Added a "timed debug" that allows for outputting debug messages every 5 seconds.
Fixed the gstreamer pipeline creation.

Sending and receiving are strange concepts when you have a server and a client.