Feature agent extension

Fixed Puppet agent issue on Ubuntu 14.04
Improvements for Agent extension handlers