Added reset() method
Call reset() upon logout
Merge pull request #391 from bhariharan/unstable

Added reset() method