Changed functions in Plugins.

* Deprecated the stream version of init(...)
* Added exceptions to storage plugin functons.