Adds support for permalink translations and fix some Qtranslate deficiencies since wordpress 3.0