Clean plugin system + add global var to view engine