YARN-2317. Updated the document about how to write YARN applications. Contributed by Li Lu. svn merge --ignore-ancestry -c 1617594 ../../trunk/