Presence code refactored (UNTESTED)
Microblog code refactored