Plugin system is developed

Please, merge plugin system into master.