Moved function blocks, created data thread

The data thread in the main class creates yet another level of
abstraction. The data thread is responsible for creating an instance of
the server and piping data through the web socket at given time
intervals from the data object in the main class.