#1048: Create a JSONP writer

For phpDocumentor to create templates that consume content using XHR requests we
actually need to do JSONP requests to retrieve content. This is because docs
made with phpDocumentor are often read offline without the use of a web server.

The absence of a web browser has the disadvantage that XHR requests are not
possible with the single exception of JSONP requests because those are not
hindered by cross domain request restrictions.
a switch is perfectly doable here  (not sure about speed and microptimizations) but it would be like
```
switch (true) {
    case $element instanceof XX:
        // do stuff
        break;
    case $element instanceof YY:
        // do stuff
        break;
    case $element instanceof ZZ:
        // do stuff
        break;
}
```

Also using `continue` is not cheating.