[fix] add before/after hooks to logout
[dist] Version bump to 0.1.7