15472 - rewrite puppet agent

Add more application commands and report :idling in the data plugin