api: allow username in getacceptedcount

This allows passing a username instead of user_id to the `getacceptedcount` in the api.
Merge branch 'patch-1' of https://github.com/LinusU/wizstats into LinusU-patch-1