update hashtree app env calls

try to get application env from riak_kv and if it doesn't exist
fallback to riak_core and then the default values. this is to ensure
upgrades do not lose settings specified in riak_kv.