Added logout function
Added notification methods
Added new preferences
Fixed bugs (clear cache and timestamp)