Added state and accessors to ServiceController and ServiceThread