PDFBOX-1915: created abstract shading resource type for common stuff to 4,5,6,7; more refactoring

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