Added minimal support for div plugin.
Rationalized the addPlugin and addPluginToView methods