Add class method visibility and fix PHP5 strict standards warnings.
Mark statically-called class methods as static.
Use wp_parse_id_list() instead of deprecated $wpdb->escape method.

$wpdb->escape() is deprecated as of WordPress 3.6.  And
wp_parse_id_list() is just a better function in general for sanitizing
arrays.

Fixes #20.
Use bp_loggedin_user_id() instead of referencing the $bp global.
Support new 'adminbar_myaccount_order' setting in BP_Component class.

This allows BP Follow to position its menu wherever it wants in the WP
Toolbar.

Only takes effect in BuddyPress 1.9+.
Backpat: Only add filter to BP template stack if not already added.
Only enqueue JavaScript on root blog if BuddyPress is not in multiblog mode
Use WP convention for conditional braces and spaces.

Also clean up comments.
Add RSS feed support for a user's following activity.

eg. example.com/members/USERNAME/activity/following/feed/

See #6.
Sets the "RSS" feed URL for the tab on the Sitewide Activity page.

This occurs when the "Following" tab is clicked on the Sitewide
Activity page or when the activity scope is already set to "following".

Only do this for BuddyPress 1.8+.

Fixes #6.
Modifies default "no activity found" text when on a user's activity
following page to be more specific to our follow scope.

Fixes #13.
Refactor javascript.

* Remove deprecated live() call and replace with on()
* Use event delegation
* Create new function - bp_follow_button_action() - to be reused based
  on the different types of event delegation.
Dynamically update follow count when following / unfollowing a user.

Fixes #14.
Add additional parameters to bp_follow_get_follow_button().

This commit adds the following new parameters:
* 'link_text'     - Set the anchor text for the follow button.
* 'link_title'    - Set the link title.
* 'wrapper_class' - Set the CSS class for the wrapper container.
* 'link_class'    - Set the CSS class for the follow button link.
* 'wrapper'       - Set the element used to wrap the link with.

Use these parameters to better customize the follow button.

Fixes #10.
Fix logic in bp_follow_get_add_follow_button() to determine if we're
in a members loop.
Refactor AJAX button callback to return a button instead of text.

Previously, when clicking on the "Follow" button, the AJAX callback
would disable the button and would not allow the logged-in user to
unfollow the user.

Fixes #15.

This commit changes the AJAX callback to return a button instead of
text so the logged-in user can now "Unfollow" a user without reloading
the page.
Use new notification API function instead of deprecated one since 1.9.
Fix string so gettext script picks it up.
Do not use extract() function.
Better phpDoc for the bp_follow_get_add_follow_button() function.