Move perfdata read functionality into perfdata package