Moved socket server value to resources and cleaned up imports