Combined patch for OOZIE-1234 and OOZIE-1235

git-svn-id: https://svn.apache.org/repos/asf/oozie/trunk@1469108 13f79535-47bb-0310-9956-ffa450edef68