Upgrade plugins management and install source code in setup.py

Change-Id: I7dde8361678bb32a1353ee2523c5e8ad7fd9ed49