Preparation to support SMW\JsonParameterFormatter

* Clean-up to enable to support to JsonParameterFormatter
* Add SMW\ParameterFormatterFactory
* Move $GLOBALS out of RecurringEventsParserFunction

Change-Id: I6f5ff1b05d6b9c3b2ac5ea2dcbe391b768a66c3e
Merge "Preparation to support SMW\JsonParameterFormatter"