initiate internal state for stateful operators

created internal state interface. Stateful operators that need checkpoint their internal states should implement this interface in order to register their states to the system.