Add argument to account_pending

Redmine 2.4 adds an argument to the account_pending function.  Check if
this installation is at least version 2.4, and if so, call account_pending
with the additional argument.

This is the same as #13, with the addition of version checking, to maintain support for Redmine < 2.4.