Extensions: Cache plugin dependency list at the end of bootstrap
Extensions: Stop plugin deactivation if plugin is currently used

Closes #294
Merge pull request #321 from rchavik/1.6-extensions

1.6 extensions - cache dependency list + check dependencies before plugin deactivation