Made ApiConnector serializable (for integration in Weka)