add rest of payout structure json.
add repository for ProportionalPayoutStructure
add shutdown hook for graceful shutdown of running threads.