YARN-2447. RM web service app submission doesn't pass secrets correctly. Contributed by Varun Vasudev

(cherry picked from commit c686aa3533b42e1baf62a78bc1bfb0ac05be53bb)