pulls friends UI out into separate library

This makes it possible to remove 90% of Elgg's UI for friends by unregistering a single event callback.