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/branches/2.0.x@1461889 13f79535-47bb-0310-9956-ffa450edef68