pulls friends UI out into separate library
added friends lib
namespaced friends functions
Merge pull request #5651 from cash/friends_lib

pulls friends UI out into separate library