Implemented generator.getDocumentPixmap

My attempt to solve export of document as one pixmap.

Minimal usage example (and test code) is here: https://github.com/marekhrabe/document-export. The example, immediately after initialization, gets `activeDocument.id` and calls `getDocumentPixmap` with that id and blank settings. It generates `document-pixmap.png` to current path.

Now it's on you to do the review :) 
When possible, we prefer `Array.prototype.forEach` in favor of for loops. Should be a simple conversion. (You could also use `Array.prototype.reduce` if you want to get fancy.)