add yarn-client support

add yarn-client support
update local.conf.template
update based on code review requirements
update based on code review requirements
Merge pull request #22 from CurryGaifan/yarn-client

add support for yarn-client mode