Monitor: Moved io statistics provider to c++ code. Added per state statistics to io statistics.