Added device object representation on server to encapsulate functions that execute on server and device. Put in functions to handle gstreamer pipeline on the server and device.