Profile: fixed friend removal (untested)

Removal of friends via /settings/friends.php didn't work as no event was attached. Also made some minor corrections in related code.