refactored into Messages for gchat messages and Friends for list of gchat contacts. still not ready to use yet.