Initial plugin code

Initial plugin code taken from add-to-favorites-for-buddypress plugin