[core] make use of the .bot property of the Client class to tell bot and human appart

fix #145 and #146

rebase and squash commits from #155