refractors server, inits stream, adds error handling, logs tweets, inits sockets, says whassup to josh