Make last_ip available, move messaging to a feature

The AccountManager is getting too much responsibilities, let's break it
up a little bit and move some stuff to a feature.