add FriendService API to control user_relation via ajax.

- add a js function "getUrlVars" that get url params easily
- bug fix
  - users that are not friends yet show in friend/index