allow setting master shard through ENV['SHARD'] or config/shards.yml
Merge branch 'configure-master-shard'