remove some code duplication from syntax plugins

Until now syntax plugins did not inherit from DokuPlugin but instead duplicated quite a bit of code from it. This should make the code easier to maintain.