fix getAllFriends query
last status time
fix blank page after sending message
rework messaging system
simple javascript to home page