added feature to wire extensions dynamically using configuration

@rande I had some trouble rebasing the commits so opened a new pr instead.