MYFACES-3659 Conditional include of scripts and stylesheets (add junit test thanks to dennis hoersch for provide this patch)

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