Many fixes to make it work on Plone4.3

We use this branch in production now, please review and merge :) You can ask questions to me and @Gagaro if you want.