Plone 4 compatibility changes

These changes provide minimal Plone 4 compatibility. At this point there is still a dependency of plone.app.kss