Method for calculating score for a given percentile value.

Pretty much a straight port (apart from having to adapt it to async callback style) of the Ruby PR: https://github.com/agoragames/leaderboard/pull/43