Improving reference implementation of ShardIdentifierProvider


I've started by reviewing the docs, time to send you back something.

The implementation is looking good but need to give it a better look tomorrow..