added friendlist and fixed session recovery
Merge branch 'friendList' into phase1
Merge branch 'phase1' into gh-pages